Commit 09fb8cb7 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

override stepCheckPackingListLineWithDifferentResource to follow aggegation in...

override stepCheckPackingListLineWithDifferentResource to follow aggegation in expanding to simulation movements.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31512 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f95fadab
...@@ -543,6 +543,19 @@ class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList): ...@@ -543,6 +543,19 @@ class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList):
simulation_line.getDeliveryError(), simulation_line.getDeliveryError(),
self.default_quantity * 2) self.default_quantity * 2)
def stepCheckPackingListLineWithDifferentResource(self,sequence=None, sequence_list=None, **kw):
"""
Look if the packing list has new previsions
"""
packing_list_line = sequence.get('packing_list_line')
new_resource = sequence.get('resource')
self.assertEquals(packing_list_line.getQuantity(), self.default_quantity*2)
self.assertEquals(packing_list_line.getResourceValue(), new_resource)
simulation_line_list = packing_list_line.getDeliveryRelatedValueList()
order_line_list = sum([x.getOrderList() for x in simulation_line_list], [])
self.assertEquals(sorted(packing_list_line.getCausalityList()),
sorted(order_line_list))
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestERP5Simulation)) suite.addTest(unittest.makeSuite(TestERP5Simulation))
......
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