From ce076dcd088dac2d4f799f65d5cc5fa58b41c5bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Tue, 18 Jul 2006 12:00:09 +0000 Subject: [PATCH] use local variable for counter and counter date git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8475 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Banking/tests/TestERP5BankingMixin.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/product/ERP5Banking/tests/TestERP5BankingMixin.py b/product/ERP5Banking/tests/TestERP5BankingMixin.py index 4f5bb52152..5233119b4b 100644 --- a/product/ERP5Banking/tests/TestERP5BankingMixin.py +++ b/product/ERP5Banking/tests/TestERP5BankingMixin.py @@ -468,12 +468,12 @@ class TestERP5BankingMixin: if site is None: site = self.testsite # create a counter date - self.counter_date_module = self.getCounterDateModule() - self.counter_date = self.counter_date_module.newContent(id='counter_date_1', portal_type="Counter Date", + counter_date_module = self.getCounterDateModule() + counter_date = counter_date_module.newContent(id='counter_date_1', portal_type="Counter Date", site_value = site, start_date = date) # open the counter date - self.counter_date.open() + counter_date.open() def openCounter(self, site=None): @@ -481,10 +481,10 @@ class TestERP5BankingMixin: open a counter for the givent site """ # create a counter - self.counter_module = self.getCounterModule() - self.counter = self.counter_module.newContent(id='counter_1', site_value=site) + counter_module = self.getCounterModule() + counter = counter_module.newContent(id='counter_1', site_value=site) # open it - self.counter.open() + counter.open() def initDefaultVariable(self): -- 2.30.9