Commit f7b44646 authored by Jérome Perrin's avatar Jérome Perrin

getTotalPrice now returns 0 by default


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21232 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2c3391cb
...@@ -256,7 +256,7 @@ class TestMovement(ERP5TypeTestCase): ...@@ -256,7 +256,7 @@ class TestMovement(ERP5TypeTestCase):
mvt = self._makeOne('mvt') mvt = self._makeOne('mvt')
mvt.setQuantity(10) mvt.setQuantity(10)
self.assertEquals(10, mvt.getQuantity()) self.assertEquals(10, mvt.getQuantity())
self.assertEquals(None, mvt.getTotalPrice()) self.assertEquals(0, mvt.getTotalPrice())
mvt.edit(quantity=20) mvt.edit(quantity=20)
self.assertEquals(20, mvt.getQuantity()) self.assertEquals(20, mvt.getQuantity())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment