Commit e3f7481b authored by Sebastien Robin's avatar Sebastien Robin

we must make sure that the right number of checks are created, also make sure...

we must make sure that the right number of checks are created, also make sure that checks are not issued with a checkbook reception

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13624 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 918aad10
......@@ -758,11 +758,11 @@ class TestERP5BankingMixin:
portal_type = 'Checkbook Model',
title='Generic')
model.newContent(id='variant_1',portal_type='Checkbook Model Check Amount Variation',
quantity=25,title='25')
quantity=50,title='50')
model.newContent(id='variant_2',portal_type='Checkbook Model Check Amount Variation',
quantity=25,title='50')
quantity=100,title='100')
model.newContent(id='variant_3',portal_type='Checkbook Model Check Amount Variation',
quantity=25,title='100')
quantity=200,title='200')
return model
......
......@@ -200,8 +200,15 @@ class TestERP5BankingCheckbookReception(TestERP5BankingMixin, ERP5TypeTestCase):
self.checkbook_1 = aggregate_value
elif aggregate_value.getPortalType()=='Check':
self.check_1 = aggregate_value
# Make sure new check is in draft mode
self.assertEquals(self.check_1.getSimulationState(),'draft')
self.assertNotEquals(None,self.checkbook_1)
self.assertNotEquals(None,self.check_1)
# Make sure that all checks inside checkbook are create
self.assertEquals(len(self.checkbook_1.objectValues()),50)
# Make sure that all checks inside checkbook are not issued yet
self.assertEquals(self.checkbook_1.objectValues()[0].getSimulationState(),
'draft')
def stepConfirmCheckbookReception(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