From f7b44646bd5fbe0b76c8f0d854a7844295e928d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Fri, 30 May 2008 07:13:24 +0000 Subject: [PATCH] getTotalPrice now returns 0 by default git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21232 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testAmount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5/tests/testAmount.py b/product/ERP5/tests/testAmount.py index 43d5d8fb76..ac3c9d2099 100644 --- a/product/ERP5/tests/testAmount.py +++ b/product/ERP5/tests/testAmount.py @@ -256,7 +256,7 @@ class TestMovement(ERP5TypeTestCase): mvt = self._makeOne('mvt') mvt.setQuantity(10) self.assertEquals(10, mvt.getQuantity()) - self.assertEquals(None, mvt.getTotalPrice()) + self.assertEquals(0, mvt.getTotalPrice()) mvt.edit(quantity=20) self.assertEquals(20, mvt.getQuantity()) -- 2.30.9