[Erp5-report] r10457 - /erp5/trunk/products/ERP5Banking/tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Oct 2 00:17:10 CEST 2006
Author: seb
Date: Mon Oct 2 00:17:05 2006
New Revision: 10457
URL: http://svn.erp5.org?rev=10457&view=rev
Log:
fixed quantity_unit and business template list
Modified:
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencyPurchase.py
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencyPurchase.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencyPurchase.py?rev=10457&r1=10456&r2=10457&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencyPurchase.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencyPurchase.py Mon Oct 2 00:17:05 2006
@@ -95,7 +95,7 @@
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
- , 'erp5_banking_cash_to_currency_purchase-0.1.bt5' # erp5_banking_cash_to_currency_purchase contains all method for cash sorting
+ , 'erp5_banking_cash'
)
def getCashToCurrencyPurchaseModule(self):
@@ -260,7 +260,7 @@
# chek the value of the banknote
self.assertEqual(self.valid_incoming_line.getPrice(), 20.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()), 1)
# now check for each variation (years 1992 and 2003)
@@ -319,7 +319,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:
@@ -357,7 +357,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:
More information about the Erp5-report
mailing list