Commit b893f3d0 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

override stepCheckPackingListLineWithSameResource because the behaviour is...

override stepCheckPackingListLineWithSameResource because the behaviour is different by using new simulation API.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31431 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 19475a27
......@@ -416,6 +416,20 @@ class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList):
solver_process.buildTargetSolverList()
solver_process.solve()
def stepCheckPackingListLineWithSameResource(self,sequence=None, sequence_list=None, **kw):
"""
Look if the packing list has new previsions
"""
old_packing_list_line = sequence.get('packing_list_line')
packing_list_line = old_packing_list_line.aq_parent[str(int(old_packing_list_line.getId())-1)]
resource = sequence.get('resource')
for line in sequence.get('packing_list').getMovementList():
self.assertEquals(line.getResourceValue(), resource)
self.assertEquals(line.getQuantity(), self.default_quantity)
self.assertEquals(line.getCausalityList(),
[x.getOrder() for x in \
line.getDeliveryRelatedValueList()])
def test_suite():
suite = unittest.TestSuite()
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