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

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Nov 12 16:49:38 CET 2008


Author: aurel
Date: Wed Nov 12 16:49:37 2008
New Revision: 24563

URL: http://svn.erp5.org?rev=24563&view=rev
Log:
define some region for unit test

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=24563&r1=24562&r2=24563&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py [utf8] (original)
+++ erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py [utf8] Wed Nov 12 16:49:37 2008
@@ -433,6 +433,12 @@
     # add the category not_defined in variation
     self.variation_not_defined = self.variation_base_category.newContent(id='not_defined',
                                       portal_type='Category')
+
+    # Now create required category for region and coin
+    self.region_base_category = getattr(self.category_tool, 'region')
+    # add the category valid in cash_status which define status of banknotes and coin
+    self.region_france = self.region_base_category.newContent(id='france', title="France", portal_type='Category')
+    self.region_spain = self.region_base_category.newContent(id='spain', title="Spain", portal_type='Category')
 
     # Create Resources Document (Banknotes & Coins)
     # get the currency cash module




More information about the Erp5-report mailing list