improve float assertions

This commit is contained in:
Leonardo Pistone
2015-03-17 17:57:46 +01:00
parent 30848b25ab
commit 4a4cb621ac

View File

@@ -46,9 +46,9 @@
-
I check Virtual stock of Gelato after update reservation
-
!python {model: product.product}: |
product = self.browse(cr, uid, ref('product_gelato'), context=context)
assert product.virtual_available == 6, "Stock is not updated."
!python {model: product.product, id: product_gelato}: |
from nose.tools import *
assert_almost_equal(self.virtual_available, 6.0)
-
I release the sales order's reservations
-
@@ -57,6 +57,6 @@
-
I check Virtual stock of Gelato after release of reservations
-
!python {model: product.product}: |
product = self.browse(cr, uid, ref('product_gelato'), context=context)
assert product.virtual_available == 10, "Stock is not updated."
!python {model: product.product, id: product_gelato}: |
from nose.tools import *
assert_almost_equal(self.virtual_available, 10.0)