[IMP] sale_mrp: remove stray print in a test

also modernificate code a bit using set literals and set
comprehensions.
This commit is contained in:
Xavier Morel
2015-09-03 12:45:39 +02:00
parent cdb30b507a
commit ec2d1f9f1d
+2 -3
View File
@@ -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.")