summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2015-09-03 10:49:04 +0200
committerXavier Morel <xmo@odoo.com>2015-09-03 12:45:39 +0200
commitec2d1f9f1d0ebe19f25ac7249389dce0da7c4d2e (patch)
tree323c869f1a7195f8bfccce43e50154aa29667cc9
parentcdb30b507ae7d1cf7205e78e67f693de17bb90d3 (diff)
[IMP] sale_mrp: remove stray print in a test
also modernificate code a bit using set literals and set comprehensions.
-rw-r--r--addons/sale_mrp/tests/test_sale_mrp_flow.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/sale_mrp/tests/test_sale_mrp_flow.py b/addons/sale_mrp/tests/test_sale_mrp_flow.py
index 5c8d7cc8dad..1404f1c10cb 100644
--- a/addons/sale_mrp/tests/test_sale_mrp_flow.py
+++ b/addons/sale_mrp/tests/test_sale_mrp_flow.py
@@ -189,9 +189,8 @@ class TestSaleMrpFlow(common.TransactionCase):
# Check total consume line with product c and uom kg.
self.assertEqual(len(moves), 1, 'Production move lines are not generated proper.')
- list_qty = [move.product_uom_qty for move in moves]
- print '***', list_qty
- self.assertEqual(set(list_qty), set([6.0]), "Wrong product quantity in 'To consume line' of manufacturing order.")
+ list_qty = {move.product_uom_qty for move in moves}
+ self.assertEqual(list_qty, {6.0}, "Wrong product quantity in 'To consume line' of manufacturing order.")
# Check state of consume line with product c and uom kg.
for move in moves:
self.assertEqual(move.state, 'confirmed', "Wrong state in 'To consume line' of manufacturing order.")