[Erp5-report] r10823 - /erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Oct 19 13:05:20 CEST 2006


Author: aurel
Date: Thu Oct 19 13:05:14 2006
New Revision: 10823

URL: http://svn.erp5.org?rev=10823&view=rev
Log:
allow to speicify id of counter as parameter

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=10823&r1=10822&r2=10823&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py Thu Oct 19 13:05:14 2006
@@ -561,6 +561,7 @@
       site = self.testsite
     # create a 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)
@@ -568,13 +569,13 @@
     counter_date.open()
 
 
-  def openCounter(self, site=None):
+  def openCounter(self, site=None, id='counter_1'):
     """
     open a counter for the givent site
     """
     # create a counter
     counter_module = self.getCounterModule()
-    counter = counter_module.newContent(id='counter_1', site_value=site)
+    counter = counter_module.newContent(id=id, site_value=site)
     # open it
     counter.open()
 




More information about the Erp5-report mailing list