[Erp5-report] r10403 - /erp5/trunk/products/ERP5Banking/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Sep 28 15:42:16 CEST 2006


Author: seb
Date: Thu Sep 28 15:42:05 2006
New Revision: 10403

URL: http://svn.erp5.org?rev=10403&view=rev
Log:
test that the quantity_unit is unit, not quantity_unit/unit

Modified:
    erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingAccountIncident.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashBalanceRegulation.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashClassification.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashExchange.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashIncident.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashInventory.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSorting.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSortingIncident.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookReception.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookUsualCashTransfer.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterRendering.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryRecall.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryReception.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetarySurvey.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositRendering.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositTransfer.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashIncident.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashRendering.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashTransfer.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingVaultTransfer.py

Modified: erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py Thu Sep 28 15:42:05 2006
@@ -292,10 +292,11 @@
           start_date='01/01/1900',stop_date='01/01/2900',
           price_currency='currency_module/EUR',
           currency_exchange_type_list=['currency_exchange_type/sale',
-                                       'currency_exchange_type/purchase'],
+                                       'currency_exchange_type/purchase',
+                                       'currency_exchange_type/transfer'],
           base_price=2)
       cell_list = exchange_line.objectValues()
-      self.assertEquals(len(cell_list),2)
+      self.assertEquals(len(cell_list),3)
       for cell in cell_list:
         cell.setBasePrice(650.0)
         cell.setDiscount(650.0)
@@ -438,6 +439,7 @@
     self.currency_exchange_type = getattr(self.category_tool,'currency_exchange_type')
     self.currency_exchange_type.newContent(id='sale')
     self.currency_exchange_type.newContent(id='purchase')
+    self.currency_exchange_type.newContent(id='transfer')
 
     # get the base category function
     self.function_base_category = getattr(self.category_tool, 'function')
@@ -684,6 +686,7 @@
     """
     return self.checkbook_model_module.newContent(id = id,
                                             portal_type = 'Check Model',
+                                            title = 'Check',
                                             )
 
   def createCheck(self, id, reference, checkbook,bank_account=None):
@@ -699,6 +702,21 @@
     # mark the check as issued
     check.confirm()
     return check
+
+  def createTravelerCheckModel(self, id):
+    """
+    Create a checkbook for the given bank account
+    """
+    model = self.checkbook_model_module.newContent(id = id,
+                                            title = 'USD Traveler Check',
+                                            portal_type = 'Check Model',
+                                            fixed_price = 1
+                                            )
+    variation = model.newContent(id='variant_1',
+                                 portal_type='Check Model Type Variation',
+                                 price=50)
+    model.setPriceCurrency(self.currency_2)
+    return model
 
   def createCashContainer(self, document, container_portal_type, global_dict, line_list, delivery_line_type='Cash Delivery Line'):
     """

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingAccountIncident.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingAccountIncident.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingAccountIncident.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingAccountIncident.py Thu Sep 28 15:42:05 2006
@@ -251,7 +251,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_1.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -309,7 +309,7 @@
     # check the value of coin
     self.assertEqual(self.valid_line_2.getPrice(), 200.0)
     # check the unit of coin
-    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_2.objectValues()), 2)
     for variation in self.variation_list:

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashBalanceRegulation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashBalanceRegulation.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashBalanceRegulation.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashBalanceRegulation.py Thu Sep 28 15:42:05 2006
@@ -334,7 +334,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_incoming_line.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_incoming_line.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -375,7 +375,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_incoming_line.getPrice(), 200.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_incoming_line.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -435,7 +435,7 @@
     # check the value of coin
     self.assertEqual(self.valid_outgoing_line.getPrice(), 5000.0)
     # check the unit of coin
-    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_outgoing_line.objectValues()), 2)
     for variation in self.variation_list:
@@ -469,7 +469,7 @@
     # check the value of coin
     self.assertEqual(self.valid_outgoing_line.getPrice(), 100.0)
     # check the unit of coin
-    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_outgoing_line.objectValues()), 2)
     for variation in self.variation_list:

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashClassification.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashClassification.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashClassification.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashClassification.py Thu Sep 28 15:42:05 2006
@@ -261,7 +261,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_incoming_line.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_incoming_line.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -301,7 +301,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_incoming_line.getPrice(), 200.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_incoming_line.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -341,7 +341,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_incoming_line.getPrice(), 5000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_incoming_line.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -399,7 +399,7 @@
     # check the value of coin
     self.assertEqual(self.valid_outgoing_line.getPrice(), 10000.0)
     # check the unit of coin
-    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_outgoing_line.objectValues()), 2)
     for variation in self.variation_list:
@@ -438,7 +438,7 @@
     # check the value of coin
     self.assertEqual(self.valid_outgoing_line.getPrice(), 200.0)
     # check the unit of coin
-    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_outgoing_line.objectValues()), 2)
     for variation in self.variation_list:
@@ -477,7 +477,7 @@
     # check the value of coin
     self.assertEqual(self.valid_outgoing_line.getPrice(), 5000.0)
     # check the unit of coin
-    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_outgoing_line.objectValues()), 2)
     for variation in self.variation_list:

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashExchange.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashExchange.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashExchange.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashExchange.py Thu Sep 28 15:42:05 2006
@@ -269,7 +269,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_incoming_line.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_incoming_line.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -309,7 +309,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_incoming_line.getPrice(), 200.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_incoming_line.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -368,7 +368,7 @@
     # check the value of coin
     self.assertEqual(self.valid_outgoing_line.getPrice(), 5000.0)
     # check the unit of coin
-    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_outgoing_line.objectValues()), 2)
     for variation in self.variation_list:
@@ -406,7 +406,7 @@
     # check the value of coin
     self.assertEqual(self.valid_outgoing_line.getPrice(), 100.0)
     # check the unit of coin
-    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_outgoing_line.objectValues()), 2)
     for variation in self.variation_list:

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashIncident.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashIncident.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashIncident.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashIncident.py Thu Sep 28 15:42:05 2006
@@ -220,7 +220,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_1.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -278,7 +278,7 @@
     # check the value of coin
     self.assertEqual(self.valid_line_2.getPrice(), 200.0)
     # check the unit of coin
-    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_2.objectValues()), 2)
     for variation in self.variation_list:

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashInventory.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashInventory.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashInventory.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashInventory.py Thu Sep 28 15:42:05 2006
@@ -242,7 +242,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_1.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -299,7 +299,7 @@
     # check the value of coin
     self.assertEqual(self.valid_line_2.getPrice(), 200.0)
     # check the unit of coin
-    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_2.objectValues()), 2)
     for variation in self.variation_list:
@@ -358,7 +358,7 @@
     # check the value of coin
     self.assertEqual(self.valid_line_3.getPrice(), 5000.0)
     # check the unit of coin
-    self.assertEqual(self.valid_line_3.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_3.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_3.objectValues()), 2)
     for variation in self.variation_list:

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSorting.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSorting.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSorting.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSorting.py Thu Sep 28 15:42:05 2006
@@ -261,7 +261,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_incoming_line.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_incoming_line.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -301,7 +301,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_incoming_line.getPrice(), 200.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_incoming_line.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -341,7 +341,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_incoming_line.getPrice(), 5000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_incoming_line.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -399,7 +399,7 @@
     # check the value of coin
     self.assertEqual(self.valid_outgoing_line.getPrice(), 10000.0)
     # check the unit of coin
-    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_outgoing_line.objectValues()), 2)
     for variation in self.variation_list:
@@ -438,7 +438,7 @@
     # check the value of coin
     self.assertEqual(self.valid_outgoing_line.getPrice(), 200.0)
     # check the unit of coin
-    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_outgoing_line.objectValues()), 2)
     for variation in self.variation_list:
@@ -477,7 +477,7 @@
     # check the value of coin
     self.assertEqual(self.valid_outgoing_line.getPrice(), 5000.0)
     # check the unit of coin
-    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_outgoing_line.objectValues()), 2)
     for variation in self.variation_list:

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSortingIncident.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSortingIncident.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSortingIncident.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSortingIncident.py Thu Sep 28 15:42:05 2006
@@ -231,7 +231,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_1.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -289,7 +289,7 @@
     # check the value of coin
     self.assertEqual(self.valid_line_2.getPrice(), 200.0)
     # check the unit of coin
-    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_2.objectValues()), 2)
     for variation in self.variation_list:

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookReception.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookReception.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookReception.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookReception.py Thu Sep 28 15:42:05 2006
@@ -101,6 +101,7 @@
     self.createManagerAndLogin()
     self.createFunctionGroupSiteCategory()
     self.checkbook_model_1 = self.createCheckbookModel('checkbook_model_1')
+    self.traveler_check_model = self.createTravelerCheckModel('traveler_check_model')
     self.check_model_1 = self.createCheckModel('check_model_1')
     self.reception = self.paris.caveau.auxiliaire.encaisse_des_billets_et_monnaies
     self.destination_site = self.paris

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookUsualCashTransfer.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookUsualCashTransfer.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookUsualCashTransfer.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookUsualCashTransfer.py Thu Sep 28 15:42:05 2006
@@ -60,10 +60,7 @@
                      id='checkbook_vault_transfer', portal_type='Checkbook Vault Transfer',
                      source_value=self.vault_transfer_source_site, 
                      destination_value=self.vault_transfer_destination_site,
-                     resource_value=self.currency_1,
                      start_date=(self.date-3))
-    # get the checkbook vault transfer document
-    self.checkbook_vault_transfer = getattr(self.getCheckbookVaultTransferModule(), 'checkbook_vault_transfer')
     # Add a line for check and checkbook
     self.line_1 = self.checkbook_vault_transfer.newContent(quantity=1,
                                  resource_value=self.checkbook_model_1,
@@ -86,6 +83,31 @@
     self.workflow_tool.doActionFor(self.checkbook_vault_transfer, 'confirm_to_deliver_action', 
                                    wf_id='checkbook_vault_transfer_workflow')
 
+  def createCheckbookVaultTransferWithTravelerCheck(self, sequence=None, 
+                                 sequence_list=None, **kwd):
+    """
+    Create a checkbook Reception
+    We do not need to check it because it is already done in another unit test.
+    """
+    self.checkbook_vault_transfer = self.getCheckbookVaultTransferModule().newContent(
+                     id='checkbook_vault_transfer', portal_type='Checkbook Vault Transfer',
+                     source_value=self.vault_transfer_source_site, 
+                     destination_value=self.vault_transfer_destination_site,
+                     start_date=(self.date-3))
+    # Add a line for traveler check
+    self.line_2 = self.checkbook_vault_transfer.newContent(quantity=1,
+                             resource_value=self.traveler_check_model,
+                             check_amount_value=self.traveler_check_model.variant_1,
+                             aggregate_value=self.traveler_check,
+                             )
+    self.workflow_tool.doActionFor(self.checkbook_vault_transfer, 'plan_action', 
+                                   wf_id='checkbook_vault_transfer_workflow')
+    self.workflow_tool.doActionFor(self.checkbook_vault_transfer, 'order_action', 
+                                   wf_id='checkbook_vault_transfer_workflow')
+    self.workflow_tool.doActionFor(self.checkbook_vault_transfer, 'confirm_action', 
+                                   wf_id='checkbook_vault_transfer_workflow')
+    self.workflow_tool.doActionFor(self.checkbook_vault_transfer, 'confirm_to_deliver_action', 
+                                   wf_id='checkbook_vault_transfer_workflow')
 
 
 class TestERP5BankingCheckbookUsualCashTransfer(TestERP5BankingCheckbookUsualCashTransferMixin,

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py Thu Sep 28 15:42:05 2006
@@ -54,7 +54,6 @@
     self.checkbook_reception = self.checkbook_reception_module.newContent(
                      id='checkbook_reception', portal_type='Checkbook Reception',
                      source_value=None, destination_value=self.reception_destination_site,
-                     resource_value=self.currency_1,
                      start_date=(self.date-4))
     # get the checkbook reception document
     self.checkbook_reception = getattr(self.checkbook_reception_module, 'checkbook_reception')
@@ -78,12 +77,44 @@
     self.workflow_tool.doActionFor(self.checkbook_reception, 'deliver_action', 
                                    wf_id='checkbook_reception_workflow')
 
-  def checkItemsCreated(self, sequence=None, sequence_list=None, **kwd):
+  def createCheckbookReceptionWithTravelerCheck(self, sequence=None, 
+                                  sequence_list=None, **kwd):
+    """
+    Create a checkbook Reception
+    We do not need to check it because it is already done in another unit test.
+    """
+    self.checkbook_reception = self.checkbook_reception_module.newContent(
+                     id='checkbook_reception', portal_type='Checkbook Reception',
+                     source_value=None, destination_value=self.reception_destination_site,
+                     start_date=(self.date-4))
+    # get the checkbook reception document
+    self.checkbook_reception = getattr(self.checkbook_reception_module, 'checkbook_reception')
+    # Add a line for check and checkbook
+    self.line_2 = self.checkbook_reception.newContent(quantity=1,
+                             resource_value=self.traveler_check_model,
+                             check_amount_value=self.traveler_check_model.variant_1,
+                             reference_range_min=52,
+                             reference_range_max=52,
+                             )
+    self.workflow_tool.doActionFor(self.checkbook_reception, 'confirm_action', 
+                                   wf_id='checkbook_reception_workflow')
+    self.workflow_tool.doActionFor(self.checkbook_reception, 'deliver_action', 
+                                   wf_id='checkbook_reception_workflow')
+
+  def checkItemsCreatedWithTravelerCheck(self, sequence=None, 
+                                         sequence_list=None, **kwd):
+    self.checkItemsCreated(sequence=sequence,
+                           sequence_list=sequence_list,
+                           traveler_check=1,**kwd)
+
+  def checkItemsCreated(self, sequence=None, sequence_list=None, 
+                        traveler_check=0,**kwd):
     """
     Create the checkbook
     """
     self.checkbook_1 = None
     self.check_1 = None
+    self.traveler_check = None
 
     for line in self.checkbook_reception.objectValues():
       aggregate_value_list = line.getAggregateValueList()
@@ -92,9 +123,15 @@
       if aggregate_value.getPortalType()=='Checkbook':
         self.checkbook_1 = aggregate_value
       elif aggregate_value.getPortalType()=='Check':
-        self.check_1 = aggregate_value
-    self.assertNotEquals(None,self.checkbook_1)
-    self.assertNotEquals(None,self.check_1)
+        if aggregate_value.getResourceValue().isFixedPrice():
+          self.traveler_check = aggregate_value
+        else:
+          self.check_1 = aggregate_value
+    if not traveler_check:
+      self.assertNotEquals(None,self.checkbook_1)
+      self.assertNotEquals(None,self.check_1)
+    else:
+      self.assertNotEquals(traveler_check,None)
 
 class TestERP5BankingCheckbookVaultTransfer(TestERP5BankingCheckbookVaultTransferMixin,
                                               TestERP5BankingMixin, ERP5TypeTestCase):

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py Thu Sep 28 15:42:05 2006
@@ -238,7 +238,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_incoming_line.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_incoming_line.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -278,7 +278,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_incoming_line.getPrice(), 200.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_incoming_line.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -336,7 +336,7 @@
     # check the value of coin
     self.assertEqual(self.valid_outgoing_line.getPrice(), 10000.0)
     # check the unit of coin
-    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_outgoing_line.objectValues()), 2)
     for variation in self.variation_list:
@@ -375,7 +375,7 @@
     # check the value of coin
     self.assertEqual(self.valid_outgoing_line.getPrice(), 200.0)
     # check the unit of coin
-    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_outgoing_line.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_outgoing_line.objectValues()), 2)
     for variation in self.variation_list:

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterRendering.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterRendering.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterRendering.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterRendering.py Thu Sep 28 15:42:05 2006
@@ -248,7 +248,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_1.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -306,7 +306,7 @@
     # check the value of coin
     self.assertEqual(self.valid_line_2.getPrice(), 200.0)
     # check the unit of coin
-    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_2.objectValues()), 2)
     for variation in self.variation_list:

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py Thu Sep 28 15:42:05 2006
@@ -189,7 +189,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 50.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_1.objectValues()), 1)
     # now check for each variation (years 1992 and 2003)
@@ -233,7 +233,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 20.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_1.objectValues()), 1)
     # now check for each variation (years 1992 and 2003)
@@ -269,7 +269,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 50.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have one delivery cells
     self.assertEqual(len(self.valid_line_1.objectValues()), 1)
     # now check for variation 
@@ -299,7 +299,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 20.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have one delivery cells
     self.assertEqual(len(self.valid_line_1.objectValues()), 1)
     # now check for variation 

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py Thu Sep 28 15:42:05 2006
@@ -339,7 +339,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_1.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -385,7 +385,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_1.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -444,7 +444,7 @@
     # check the value of banknote
     self.assertEqual(self.valid_line_2.getPrice(), 5000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_2.objectValues()), 2)
     for variation in self.variation_list:
@@ -483,7 +483,7 @@
     # check the value of banknote
     self.assertEqual(self.valid_line_2.getPrice(), 5000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_2.objectValues()), 2)
     for variation in self.variation_list:

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryRecall.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryRecall.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryRecall.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryRecall.py Thu Sep 28 15:42:05 2006
@@ -256,7 +256,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_1.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -314,7 +314,7 @@
     # check the value of coin
     self.assertEqual(self.valid_line_2.getPrice(), 200.0)
     # check the unit of coin
-    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_2.objectValues()), 2)
     for variation in self.variation_list:

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryReception.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryReception.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryReception.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryReception.py Thu Sep 28 15:42:05 2006
@@ -215,7 +215,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have one delivery cells
     self.assertEqual(len(self.valid_line_1.objectValues()), 1)
     # now check for variation 2003

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetarySurvey.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetarySurvey.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetarySurvey.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetarySurvey.py Thu Sep 28 15:42:05 2006
@@ -234,7 +234,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_1.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -292,7 +292,7 @@
     # check the value of coin
     self.assertEqual(self.valid_line_2.getPrice(), 200.0)
     # check the unit of coin
-    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_2.objectValues()), 2)
     for variation in self.variation_list:

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositRendering.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositRendering.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositRendering.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositRendering.py Thu Sep 28 15:42:05 2006
@@ -257,7 +257,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_1.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -315,7 +315,7 @@
     # check the value of coin
     self.assertEqual(self.valid_line_2.getPrice(), 200.0)
     # check the unit of coin
-    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_2.objectValues()), 2)
     for variation in self.variation_list:

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositTransfer.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositTransfer.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositTransfer.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositTransfer.py Thu Sep 28 15:42:05 2006
@@ -243,7 +243,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_1.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -301,7 +301,7 @@
     # check the value of coin
     self.assertEqual(self.valid_line_2.getPrice(), 200.0)
     # check the unit of coin
-    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_2.objectValues()), 2)
     for variation in self.variation_list:

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashIncident.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashIncident.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashIncident.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashIncident.py Thu Sep 28 15:42:05 2006
@@ -213,7 +213,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_1.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -271,7 +271,7 @@
     # check the value of coin
     self.assertEqual(self.valid_line_2.getPrice(), 200.0)
     # check the unit of coin
-    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_2.objectValues()), 2)
     for variation in self.variation_list:

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashRendering.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashRendering.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashRendering.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashRendering.py Thu Sep 28 15:42:05 2006
@@ -265,7 +265,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_1.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -327,7 +327,7 @@
     # check the value of coin
     self.assertEqual(self.valid_line_2.getPrice(), 200.0)
     # check the unit of coin
-    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_2.objectValues()), 2)
     for variation in self.variation_list:

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashTransfer.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashTransfer.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashTransfer.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashTransfer.py Thu Sep 28 15:42:05 2006
@@ -246,7 +246,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_1.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -304,7 +304,7 @@
     # check the value of coin
     self.assertEqual(self.valid_line_2.getPrice(), 200.0)
     # check the unit of coin
-    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_2.objectValues()), 2)
     for variation in self.variation_list:

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingVaultTransfer.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingVaultTransfer.py?rev=10403&r1=10402&r2=10403&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingVaultTransfer.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingVaultTransfer.py Thu Sep 28 15:42:05 2006
@@ -315,7 +315,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_1.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -363,7 +363,7 @@
     # chek the value of the banknote
     self.assertEqual(self.valid_line_1.getPrice(), 10000.0)
     # check the unit of banknote
-    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_1.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_1.objectValues()), 2)
     # now check for each variation (years 1992 and 2003)
@@ -420,7 +420,7 @@
     # check the value of coin
     self.assertEqual(self.valid_line_2.getPrice(), 200.0)
     # check the unit of coin
-    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'quantity_unit/unit')
+    self.assertEqual(self.valid_line_2.getQuantityUnit(), 'unit')
     # check we have two delivery cells: (one for year 1992 and one for 2003)
     self.assertEqual(len(self.valid_line_2.objectValues()), 2)
     for variation in self.variation_list:




More information about the Erp5-report mailing list