Commit 67410c1c authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

modify for new simulation hierarchy.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32536 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 635c874b
......@@ -1079,6 +1079,17 @@ class TestProductionOrderMixin(TestOrderMixin):
applied_rule = applied_rule_list[0]
self.assertEquals("Applied Rule", applied_rule.getPortalType())
portal_rules = getToolByName(applied_rule, 'portal_rules')
self.assertEquals('default_delivering_rule', \
applied_rule.getSpecialiseReference())
# Test next applied rule
simulation_movement_list = applied_rule.objectValues()
self.assertEquals(1, len(simulation_movement_list))
simulation_movement = simulation_movement_list[0]
applied_rule_list = simulation_movement.objectValues()
self.assertEquals(1, len(applied_rule_list))
applied_rule = applied_rule_list[0]
self.assertEquals("Applied Rule", applied_rule.getPortalType())
portal_rules = getToolByName(applied_rule, 'portal_rules')
self.assertEquals('default_transformation_rule', \
applied_rule.getSpecialiseReference())
# Test deeper simulation
......
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