diff --git a/product/ERP5/tests/testProductionOrder.py b/product/ERP5/tests/testProductionOrder.py
index 7a9272775bffbf73148b9f4927e1f0b131d00203..8e800c127a9302dd10e311a92f2efb0f88c76da6 100644
--- a/product/ERP5/tests/testProductionOrder.py
+++ b/product/ERP5/tests/testProductionOrder.py
@@ -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
diff --git a/product/ERP5Legacy/tests/testLegacyProductionOrder.py b/product/ERP5Legacy/tests/testLegacyProductionOrder.py
index fe0837aa642027838ee9388c918cbe8ce9d8ee4a..be772cdbc9c037b3c301a5a32745580120fc6662 100644
--- a/product/ERP5Legacy/tests/testLegacyProductionOrder.py
+++ b/product/ERP5Legacy/tests/testLegacyProductionOrder.py
@@ -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