diff --git a/product/ERP5/tests/testERP5Simulation.py b/product/ERP5/tests/testERP5Simulation.py index 3c1e2ef34b0b0a8c4faf9378be5f50051439aec0..ab9c9e6c6f8fde89386bc84ff18166e5f1da1f4f 100644 --- a/product/ERP5/tests/testERP5Simulation.py +++ b/product/ERP5/tests/testERP5Simulation.py @@ -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