Commit a817170e authored by Jérome Perrin's avatar Jérome Perrin

don't test that group category is empty, but that it does not already contain what we want to add


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16064 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 66f92844
...@@ -76,9 +76,10 @@ class TestConstraint(PropertySheetTestCase): ...@@ -76,9 +76,10 @@ class TestConstraint(PropertySheetTestCase):
some categories for testing them some categories for testing them
""" """
category_list = ['testGroup1', 'testGroup2'] category_list = ['testGroup1', 'testGroup2']
if len(self.category_tool.group.contentValues()) == 0 : group = self.category_tool.group
if 'testGroup1' not in group.contentIds():
for category_id in category_list: for category_id in category_list:
o = self.category_tool.group.newContent(portal_type='Category', o = group.newContent(portal_type='Category',
id=category_id) id=category_id)
def stepDeleteObjectModuleContent(self, sequence=None, def stepDeleteObjectModuleContent(self, sequence=None,
......
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