From f299d3149238dd6405a659408ca53e9bc8e52d61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 17 Dec 2011 22:30:00 +0100 Subject: [PATCH] Use comparison in doctest doctest fails if we got an integer instead of float --- tests/scenario_sale_shipment_cost.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/scenario_sale_shipment_cost.rst b/tests/scenario_sale_shipment_cost.rst index 5f732d8bdf..e70b8111c6 100644 --- a/tests/scenario_sale_shipment_cost.rst +++ b/tests/scenario_sale_shipment_cost.rst @@ -185,8 +185,8 @@ Sale products with cost on shipment:: >>> cost_line = sale.lines[-1] >>> cost_line.product == carrier_product True - >>> cost_line.quantity - 1.0 + >>> cost_line.quantity == 1 + True >>> cost_line.amount == Decimal('3') True >>> sale.save() @@ -255,8 +255,8 @@ Sale products with cost on order:: >>> cost_line = sale.lines[-1] >>> cost_line.product == carrier_product True - >>> cost_line.quantity - 1.0 + >>> cost_line.quantity == 1 + True >>> cost_line.amount == Decimal('3') True >>> sale.save()