[Erp5-report] r10211 - /erp5/trunk/products/ERP5Banking/tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Sep 20 16:54:20 CEST 2006
Author: aurel
Date: Wed Sep 20 16:54:16 2006
New Revision: 10211
URL: http://svn.erp5.org?rev=10211&view=rev
Log:
set source reference when creating document
Modified:
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashClassification.py
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashClassification.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashClassification.py?rev=10211&r1=10210&r2=10211&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashClassification.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashClassification.py Wed Sep 20 16:54:16 2006
@@ -223,6 +223,11 @@
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
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
self.assertEqual(len(self.cash_sorting_module.objectValues()), 1)
# get the cash sorting document
More information about the Erp5-report
mailing list