Commit aea3494c authored by Nicolas Dumazet's avatar Nicolas Dumazet

check directly for non-None-ness for clearer error


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33485 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8f4e126e
......@@ -562,6 +562,9 @@ class TestProductionOrderMixin(TestOrderMixin):
size = order_movement.getSize()
colour = order_movement.getColour()
self.assertNotEqual(size, None)
self.assertNotEqual(colour, None)
want_produced_quantity = self.order_line_colour_size_quantity_dict[colour][size]
want_consume_quantity = self.colour_size_quantity_dict[colour][size]
want_consume_for_production = want_produced_quantity * want_consume_quantity
......
......@@ -559,6 +559,9 @@ class TestProductionOrderMixin(TestOrderMixin):
size = order_movement.getSize()
colour = order_movement.getColour()
self.assertNotEqual(size, None)
self.assertNotEqual(colour, None)
want_produced_quantity = self.order_line_colour_size_quantity_dict[colour][size]
want_consume_quantity = self.colour_size_quantity_dict[colour][size]
want_consume_for_production = want_produced_quantity * want_consume_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