Commit 6f7fe316 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

follow the change of the simulation hierarchy.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33463 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f0550a1a
...@@ -391,7 +391,11 @@ class TestBPMEvaluationMixin(TestBPMMixin): ...@@ -391,7 +391,11 @@ class TestBPMEvaluationMixin(TestBPMMixin):
# root rule is order or delivery - so below each movement invoicing one # root rule is order or delivery - so below each movement invoicing one
# is expected # is expected
self.assertEquals(len(root_simulation_movement.contentValues()), 1) self.assertEquals(len(root_simulation_movement.contentValues()), 1)
for bpm_invoicing_rule in root_simulation_movement.contentValues(): delivery_rule = root_simulation_movement.contentValues()[0]
delivery_simulation_movement_list = delivery_rule.contentValues()
self.assertEqual(1, len(delivery_simulation_movement_list))
delivery_simulation_movement = delivery_simulation_movement_list[0]
for bpm_invoicing_rule in delivery_simulation_movement.contentValues():
self.assertEqual(bpm_invoicing_rule.getPortalType(), 'Applied Rule') self.assertEqual(bpm_invoicing_rule.getPortalType(), 'Applied Rule')
self.assertEqual(bpm_invoicing_rule.getSpecialiseValue() \ self.assertEqual(bpm_invoicing_rule.getSpecialiseValue() \
.getPortalType(), 'Invoice Simulation Rule') .getPortalType(), 'Invoice Simulation Rule')
......
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