Use comparison in doctest

doctest fails if we got an integer instead of float
This commit is contained in:
Cédric Krier committed 2011-12-17 22:30:00 +01:00
1 parent 2a205d6162
commit f299d31492
1 file changed
+4 -4
+4 -4
View File
@@ -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()