From 59b4bb4af4fb3515e1781996a745c578e321c551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Fri, 27 Jan 2006 08:34:09 +0000 Subject: [PATCH] check Simulation tool instead of Trash tool at upgrade of tool because trash tool is required for installation git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5359 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testBusinessTemplate.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/product/ERP5/tests/testBusinessTemplate.py b/product/ERP5/tests/testBusinessTemplate.py index 49c136e186..fb517b7f50 100755 --- a/product/ERP5/tests/testBusinessTemplate.py +++ b/product/ERP5/tests/testBusinessTemplate.py @@ -1476,19 +1476,19 @@ class TestBusinessTemplate(ERP5TypeTestCase): prop_dict[pid[:-5]] = () bt.edit(**prop_dict) - def stepRemoveTrashTool(self, sequence=None, sequence_list=None, **kw): + def stepRemoveSimulationTool(self, sequence=None, sequence_list=None, **kw): """ Remove Trash Tool from site """ p = self.getPortal() - p.manage_delObjects(['portal_trash']) - self.failUnless(p._getOb('portal_trash', None) is None) + p.manage_delObjects(['portal_simulation']) + self.failUnless(p._getOb('portal_simulation', None) is None) - def stepCheckTrashToolExists(self, sequence=None, sequence_list=None, **kw): + def stepCheckSimulationToolExists(self, sequence=None, sequence_list=None, **kw): """ Check presence of trash tool """ - self.failUnless(self.getTrashTool() is not None) + self.failUnless(self.getSimulationTool() is not None) # tests def test_01_checkNewSite(self, quiet=0, run=run_all_test): @@ -2591,7 +2591,7 @@ class TestBusinessTemplate(ERP5TypeTestCase): RemovePropertySheet \ RemoveBusinessTemplate \ RemoveAllTrashBins \ - RemoveTrashTool \ + RemoveSimulationTool \ ImportBusinessTemplate \ UseImportBusinessTemplate \ CheckBuiltBuildingState \ @@ -2600,7 +2600,7 @@ class TestBusinessTemplate(ERP5TypeTestCase): Tic \ CheckInstalledInstallationState \ CheckBuiltBuildingState \ - CheckTrashToolExists \ + CheckSimulationToolExists \ CheckSkinsLayers \ CheckPortalTypeExists \ CheckModuleExists \ -- 2.30.9