Commit 64677f61 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

in new simulation, accept solver does not propagate changes to upper simulation movements.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37300 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d0e1845f
......@@ -360,6 +360,30 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
self.assertEquals(sorted(packing_list_line.getCausalityList()),
sorted(order_line_list))
def stepCheckSimulationMovementHasRecordedQuantity(self, sequence=None,
sequence_list=None):
movement_list = sequence.get('packing_list').objectValues(
portal_type=self.packing_list_line_portal_type)
self._checkRecordedProperty(movement_list, 'quantity', True)
def stepCheckSimulationMovementHasNoRecordedQuantity(self, sequence=None,
sequence_list=None):
movement_list = sequence.get('packing_list').objectValues(
portal_type=self.packing_list_line_portal_type)
self._checkRecordedProperty(movement_list, 'quantity', False)
def stepCheckSimulationMovementHasRecordedResource(self, sequence=None,
sequence_list=None):
movement_list = sequence.get('packing_list').objectValues(
portal_type=self.packing_list_line_portal_type)
self._checkRecordedProperty(movement_list, 'resource', True)
def stepCheckSimulationMovementHasNoRecordedResource(self, sequence=None,
sequence_list=None):
movement_list = sequence.get('packing_list').objectValues(
portal_type=self.packing_list_line_portal_type)
self._checkRecordedProperty(movement_list, 'resource', False)
class TestERP5Simulation(TestERP5SimulationMixin, ERP5TypeTestCase):
run_all_test = 1
quiet = 0
......
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