Commit 0d14b016 authored by Jérome Perrin's avatar Jérome Perrin

return the Movement in the context of a Delivery


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20335 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 30e649ca
......@@ -246,8 +246,11 @@ class TestMovement(ERP5TypeTestCase):
def _makeOne(self, *args, **kw):
from Products.ERP5.Document.Movement import Movement
mvt = Movement(*args, **kw)
# return it wrapped, so that it can access the types tool in _aq_dynamic
return mvt.__of__(self.portal)
from Products.ERP5.Document.Delivery import Delivery
delivery = Delivery('delivery').__of__(self.portal)
# return it wrapped in a delivery, so that it can access the types tool in
# _aq_dynamic, and so that getExplanationValue works as expected
return mvt.__of__(delivery)
def testQuantity(self):
mvt = self._makeOne('mvt')
......
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