[Erp5-report] r8475 - /erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jul 18 14:00:13 CEST 2006
Author: aurel
Date: Tue Jul 18 14:00:09 2006
New Revision: 8475
URL: http://svn.erp5.org?rev=8475&view=rev
Log:
use local variable for counter and counter date
Modified:
erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
Modified: erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py?rev=8475&r1=8474&r2=8475&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py Tue Jul 18 14:00:09 2006
@@ -468,12 +468,12 @@
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 @@
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):
More information about the Erp5-report
mailing list