[FIXMP] sale: make test result easier to understand

This commit is contained in:
Richard Mathot
2017-05-31 14:12:58 +02:00
parent 3dcc54ccf4
commit dd8f238ff7
+1 -1
View File
@@ -133,4 +133,4 @@ class TestSaleOrder(TestSale):
inv.action_invoice_open()
sol = so.order_line.filtered(lambda l: l.product_id == serv_cost)
self.assertTrue(sol, 'Sale: cost invoicing does not add lines when confirming vendor invoice')
self.assertTrue(sol.price_unit == 160 and sol.qty_delivered == 2 and sol.product_uom_qty == sol.qty_invoiced == 0, 'Sale: line is wrong after confirming vendor invoice')
self.assertEquals((sol.price_unit, sol.qty_delivered, sol.product_uom_qty, sol.qty_invoiced), (160, 2, 0, 0), 'Sale: line is wrong after confirming vendor invoice')