Commit f0e7b7dc authored by Aurel's avatar Aurel

define source reference on document


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13743 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7c7cd613
......@@ -196,6 +196,11 @@ class TestERP5BankingCashSortingIncident(TestERP5BankingMixin, ERP5TypeTestCase)
self.stepTic()
# check we have only one cash transfer
self.assertEqual(len(self.cash_sorting_incident_module.objectValues()), 1)
# set source reference
self.setDocumentSourceReference(self.cash_sorting_incident)
# check source reference
self.assertNotEqual(self.cash_sorting_incident.getSourceReference(), '')
self.assertNotEqual(self.cash_sorting_incident.getSourceReference(), None)
# get the cash transfer document
self.cash_sorting_incident = getattr(self.cash_sorting_incident_module, 'cash_sorting_incident_1')
# check its portal type
......
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