[Erp5-report] r14461 - /erp5/trunk/products/ERP5Banking/tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri May 11 12:04:12 CEST 2007
Author: seb
Date: Fri May 11 12:04:11 2007
New Revision: 14461
URL: http://svn.erp5.org?rev=14461&view=rev
Log:
make sure to test the dynamic calculation of the cash status
Modified:
erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py?rev=14461&r1=14460&r2=14461&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py Fri May 11 12:04:11 2007
@@ -334,6 +334,10 @@
cell = self.valid_outgoing_line.getCell('emission_letter/p', variation, 'cash_status/cancelled')
# check the portal type
self.assertEqual(cell.getPortalType(), 'Outgoing Classification Survey Cell')
+ variation_text = cell.getBaobabDestinationVariationText()
+ cash_status = [x for x in variation_text.split('\n')
+ if x.startswith('cash_status')][0]
+ self.assertEquals(cash_status, 'cash_status/retired')
if cell.getId() == 'movement_0_0_0':
# check the quantity for coin for year 1992 is 5
self.assertEqual(cell.getQuantity(), 2.0)
@@ -373,6 +377,10 @@
cell = self.valid_outgoing_line.getCell('emission_letter/s', variation, 'cash_status/cancelled')
# check the portal type
self.assertEqual(cell.getPortalType(), 'Outgoing Classification Survey Cell')
+ variation_text = cell.getBaobabDestinationVariationText()
+ cash_status = [x for x in variation_text.split('\n')
+ if x.startswith('cash_status')][0]
+ self.assertEquals(cash_status, 'cash_status/cancelled')
if cell.getId() == 'movement_0_0_0':
# check the quantity for coin for year 1992 is 5
self.assertEqual(cell.getQuantity(), 5.0)
More information about the Erp5-report
mailing list