Commit 7730b311 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

check values in delivery simulation rule's simulation movements instead of...

check values in delivery simulation rule's simulation movements instead of order root simulation rule's simulation movements.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34033 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9484e1fd
......@@ -412,6 +412,7 @@ class TestPackingListMixin(TestOrderMixin):
self.assertEquals(len(simulation_movement_list),1)
org3 = sequence.get('organisation3')
for simulation_movement in simulation_movement_list:
simulation_movement = simulation_movement.objectValues()[0].objectValues()[0]
self.assertEquals(simulation_movement.getDestinationValue(),org3)
def stepChangePackingListStartDate(self, sequence=None, sequence_list=None, **kw):
......@@ -439,6 +440,7 @@ class TestPackingListMixin(TestOrderMixin):
simulation_movement_list = applied_rule.objectValues()
self.assertEquals(len(simulation_movement_list),1)
for simulation_movement in simulation_movement_list:
simulation_movement = simulation_movement.objectValues()[0].objectValues()[0]
self.assertEquals(simulation_movement.getQuantity() + \
simulation_movement.getDeliveryError(),
self.default_quantity)
......@@ -451,6 +453,7 @@ class TestPackingListMixin(TestOrderMixin):
simulation_movement_list = applied_rule.objectValues()
self.assertEquals(len(simulation_movement_list),2)
for simulation_movement in simulation_movement_list:
simulation_movement = simulation_movement.objectValues()[0].objectValues()[0]
self.assertEquals(simulation_movement.getQuantity() + \
simulation_movement.getDeliveryError(),
self.default_quantity)
......
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