From 4cf1326c88f5e50100fc141bbffe7054f4cbeeec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Wisniewski?= <gregory@nexedi.com> Date: Wed, 7 Jul 2010 08:04:59 +0000 Subject: [PATCH] Fix wrong property name. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36926 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../ERP5Banking/tests/TestERP5BankingMixin.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/product/ERP5Banking/tests/TestERP5BankingMixin.py b/product/ERP5Banking/tests/TestERP5BankingMixin.py index 2c84a4eb00..0e496864fa 100644 --- a/product/ERP5Banking/tests/TestERP5BankingMixin.py +++ b/product/ERP5Banking/tests/TestERP5BankingMixin.py @@ -910,7 +910,7 @@ class TestERP5BankingMixin(ERP5TypeTestCase): ) def createCheckbookModel(self, id, check_model, reference=None, - unique_per_reference=True): + unique_per_account=True): """ Create a checkbook for the given bank account with 3 variations @@ -922,7 +922,7 @@ class TestERP5BankingMixin(ERP5TypeTestCase): account_number_enabled=True, reference=reference, composition=check_model.getRelativeUrl(), - unique_per_reference=unique_per_reference, + unique_per_account=unique_per_account, ) model.newContent(id='variant_1', portal_type='Checkbook Model Check Amount Variation', quantity=50, title='50') @@ -933,7 +933,7 @@ class TestERP5BankingMixin(ERP5TypeTestCase): return model - def createCheckModel(self, id, reference='CCOP', **kw): + def createCheckModel(self, id, reference='CCOP', unique_per_account=True): """ Create a checkbook for the given bank account """ @@ -943,7 +943,7 @@ class TestERP5BankingMixin(ERP5TypeTestCase): title='Check', reference=reference, account_number_enabled=True, - unique_per_reference=True, + unique_per_account=unique_per_account, ) def createCheckAndCheckbookModel(self): @@ -956,12 +956,12 @@ class TestERP5BankingMixin(ERP5TypeTestCase): self.check_model_1_2 = self.createCheckModel( id='check_model_1_2', reference='CCOP', - unique_per_reference=False, + unique_per_account=False, ) self.check_model_2_2 = self.createCheckModel( id='check_model_2_2', reference='CCCO', - unique_per_reference=False, + unique_per_account=False, ) self.checkbook_model = self.createCheckbookModel( id='checkbook_model', check_model=self.check_model) @@ -971,12 +971,12 @@ class TestERP5BankingMixin(ERP5TypeTestCase): self.checkbook_model_1_2 = self.createCheckbookModel( id='checkbook_model_1_2', check_model=self.check_model_1_2, - unique_per_reference=False, + unique_per_account=False, ) self.checkbook_model_2_2 = self.createCheckbookModel( id='checkbook_model_2_2', check_model=self.check_model_2_2, - unique_per_reference=False, + unique_per_account=False, ) def createCheck(self, id, reference, checkbook, bank_account=None, -- 2.30.9