From ec2d1f9f1d0ebe19f25ac7249389dce0da7c4d2e Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 3 Sep 2015 10:49:04 +0200 Subject: [PATCH] [IMP] sale_mrp: remove stray print in a test also modernificate code a bit using set literals and set comprehensions. --- addons/sale_mrp/tests/test_sale_mrp_flow.py | 5 ++--- 1 file 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.")