Commit f86fafd8 authored by Aurel's avatar Aurel

set and check source reference on document


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10068 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 728ccae9
......@@ -213,6 +213,8 @@ class TestERP5BankingAccountIncident(TestERP5BankingMixin, ERP5TypeTestCase):
destination_payment_value=self.bank_account_1)
# execute tic
self.stepTic()
# set source reference
self.setDocumentSourceReference(self.account_incident)
# check we have only one cash transfer
self.assertEqual(len(self.account_incident_module.objectValues()), 1)
# get the cash transfer document
......@@ -223,7 +225,10 @@ class TestERP5BankingAccountIncident(TestERP5BankingMixin, ERP5TypeTestCase):
# check that its destination is counter
self.assertEqual(self.account_incident.getSource(), 'site/testsite/paris')
self.assertEqual(self.account_incident.getDestination(), None)
# check source reference
self.assertNotEqual(self.account_incident.getSourceReference(), '')
self.assertNotEqual(self.account_incident.getSourceReference(), None)
def stepCreateIncomingLine(self, sequence=None, sequence_list=None, **kwd):
"""
......
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