[Erp5-report] r10068 - /erp5/trunk/products/ERP5Banking/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Sep 18 09:53:37 CEST 2006


Author: aurel
Date: Mon Sep 18 09:53:36 2006
New Revision: 10068

URL: http://svn.erp5.org?rev=10068&view=rev
Log:
set and check source reference on document

Modified:
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingAccountIncident.py

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingAccountIncident.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingAccountIncident.py?rev=10068&r1=10067&r2=10068&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingAccountIncident.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingAccountIncident.py Mon Sep 18 09:53:36 2006
@@ -213,6 +213,8 @@
                                                                     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 @@
     # 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):
     """




More information about the Erp5-report mailing list