Commit f0afc116 authored by Sebastien Robin's avatar Sebastien Robin

make sure to test the dynamic calculation of the cash status

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14461 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3c654371
......@@ -334,6 +334,10 @@ class TestERP5BankingClassificationSurvey(TestERP5BankingMixin, ERP5TypeTestCase
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 @@ class TestERP5BankingClassificationSurvey(TestERP5BankingMixin, ERP5TypeTestCase
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)
......
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