Commit 94880781 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

conditions were reversed in stepCheckFirstActionNotExists and stepCheckSecondActionNotExists.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30190 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6503698d
...@@ -1264,7 +1264,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -1264,7 +1264,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
object_id = sequence.get('object_ptype_id') object_id = sequence.get('object_ptype_id')
object_pt = pt._getOb(object_id) object_pt = pt._getOb(object_id)
action_id = sequence.get('first_action_id') action_id = sequence.get('first_action_id')
self.assertTrue(action_id in [x.getReference() self.assertFalse(action_id in [x.getReference()
for x in object_pt.getActionInformationList()]) for x in object_pt.getActionInformationList()])
def stepCheckSecondActionExists(self, sequence=None, sequence_list=None, **kw): def stepCheckSecondActionExists(self, sequence=None, sequence_list=None, **kw):
...@@ -1286,7 +1286,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -1286,7 +1286,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
object_id = sequence.get('object_ptype_id') object_id = sequence.get('object_ptype_id')
object_pt = pt._getOb(object_id) object_pt = pt._getOb(object_id)
action_id = sequence.get('second_action_id') action_id = sequence.get('second_action_id')
self.assertTrue(action_id in [x.getReference() self.assertFalse(action_id in [x.getReference()
for x in object_pt.getActionInformationList()]) for x in object_pt.getActionInformationList()])
def stepAddSecondActionToBusinessTemplate(self, sequence=None, sequence_list=None, **kw): def stepAddSecondActionToBusinessTemplate(self, sequence=None, sequence_list=None, **kw):
......
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