Commit 8a38a472 authored by Aurel's avatar Aurel

set source reference when creating document


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10211 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 978a1465
...@@ -223,6 +223,11 @@ class TestERP5BankingCashClassification(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -223,6 +223,11 @@ class TestERP5BankingCashClassification(TestERP5BankingMixin, ERP5TypeTestCase):
self.cash_sorting = self.cash_sorting_module.newContent(id='cash_sorting_1', portal_type='Cash Sorting', source_value=self.encaisse_tri, destination_value=None, source_total_asset_price=52400.0) self.cash_sorting = self.cash_sorting_module.newContent(id='cash_sorting_1', portal_type='Cash Sorting', source_value=self.encaisse_tri, destination_value=None, source_total_asset_price=52400.0)
# execute tic # execute tic
self.stepTic() self.stepTic()
# set source reference
self.setDocumentSourceReference(self.cash_sorting)
# check source reference
self.assertNotEqual(self.cash_sorting.getSourceReference(), '')
self.assertNotEqual(self.cash_sorting.getSourceReference(), None)
# check we have only one cash sorting # check we have only one cash sorting
self.assertEqual(len(self.cash_sorting_module.objectValues()), 1) self.assertEqual(len(self.cash_sorting_module.objectValues()), 1)
# get the cash sorting document # get the cash sorting 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