Commit 931ad2a2 authored by Aurel's avatar Aurel

set source reference on document


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13695 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d34e2dab
...@@ -171,9 +171,14 @@ class TestERP5BankingDestructionSurvey(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -171,9 +171,14 @@ class TestERP5BankingDestructionSurvey(TestERP5BankingMixin, ERP5TypeTestCase):
source_value=self.cash, source_value=self.cash,
description='test', description='test',
destination_value=self.counter, destination_value=self.counter,
source_total_asset_price=52400.0) source_total_asset_price=52400.0,)
# execute tic # execute tic
self.stepTic() self.stepTic()
# set source reference
self.setDocumentSourceReference(self.destruction_survey)
# check source reference
self.assertNotEqual(self.destruction_survey.getSourceReference(), '')
self.assertNotEqual(self.destruction_survey.getSourceReference(), None)
# check we have only one cash transfer # check we have only one cash transfer
self.assertEqual(len(self.destruction_survey_module.objectValues()), 1) self.assertEqual(len(self.destruction_survey_module.objectValues()), 1)
# get the cash transfer document # get the cash transfer document
......
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