Commit be9305bb authored by Yoshinori Okuji's avatar Yoshinori Okuji

Correct the test.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4458 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7d73f8ba
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment