diff options
| author | Richard Mathot <rim@odoo.com> | 2017-05-31 14:12:58 +0200 |
|---|---|---|
| committer | Richard Mathot <rim@odoo.com> | 2017-05-31 14:12:58 +0200 |
| commit | dd8f238ff760fb1d2de775781976d2d2b3464a9a (patch) | |
| tree | a82789413bfdce534ac6b31dfd6107253629afd7 | |
| parent | 3dcc54ccf46c38df308a6af2ecaf2826a95f1fa0 (diff) | |
[FIXMP] sale: make test result easier to understand
| -rw-r--r-- | addons/sale/tests/test_sale_order.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/sale/tests/test_sale_order.py b/addons/sale/tests/test_sale_order.py index fdbefe40d80..c7e40df04db 100644 --- a/addons/sale/tests/test_sale_order.py +++ b/addons/sale/tests/test_sale_order.py @@ -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') |
