Commit ea8e5ee3 authored by Aurel's avatar Aurel

set destination on headquarter document


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10828 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4237a257
......@@ -467,7 +467,8 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase):
self.hq_mutilated_banknote = self.mutilated_banknote_module.newContent(id='hq_mutilated_banknote',
portal_type='Mutilated Banknote',
source_total_asset_price=0.0,
destination_total_asset_price=0.0
destination_total_asset_price=0.0,
destination_value=self.mutilated_banknote_vault
)
self.stepTic()
self.hq_mutilated_banknote.edit(source_trade='site/testsite/paris')
......@@ -477,7 +478,7 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase):
self.assertEqual(self.hq_mutilated_banknote.getPortalType(), 'Mutilated Banknote')
self.assertEqual(self.hq_mutilated_banknote.getSource(), 'site/testsite/siege')
self.assertEqual(self.hq_mutilated_banknote.getSourceTrade(), 'site/testsite/paris')
self.assertEqual(self.hq_mutilated_banknote.getDestination(), None)
self.assertEqual(self.hq_mutilated_banknote.getDestination(), self.mutilated_banknote_vault.getRelativeUrl())
def stepTryPlanHQWithNoLineDefined(self, sequence=None, sequence_list=None, **kw):
"""
......
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