From be9305bbe1da70824e59c2ab2a6463a547ad0832 Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Fri, 2 Dec 2005 08:48:40 +0000 Subject: [PATCH] Correct the test. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4458 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testBusinessTemplate.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/product/ERP5/tests/testBusinessTemplate.py b/product/ERP5/tests/testBusinessTemplate.py index 869cdc078b..331104148b 100755 --- a/product/ERP5/tests/testBusinessTemplate.py +++ b/product/ERP5/tests/testBusinessTemplate.py @@ -437,6 +437,15 @@ class TestBusinessTemplate(ERP5TypeTestCase): portal_categories = self.getCategoryTool() self.failUnless(base_category_id in portal_categories.contentIds()) + def stepCheckIfBaseCategoryIsNotInstalled(self, sequence=None, + sequence_list=None, **kw): + """ + Check if a base category is not installed. + """ + base_category_id = sequence.get('installed_base_cat_id') + portal_categories = self.getCategoryTool() + self.failIf(base_category_id in portal_categories.contentIds()) + def test_03_update(self, quiet=0, run=run_all_test): """ Update BT @@ -537,7 +546,7 @@ class TestBusinessTemplate(ERP5TypeTestCase): Tic \ InstallNewBT \ CheckNoEmptyDiff \ - CheckIfBaseCategoryIsInstalled \ + CheckIfBaseCategoryIsNotInstalled \ SwitchBT \ ' sequence_list.addSequenceString(sequence_string) -- 2.30.9