[Erp5-report] r44629 aurel - /erp5/trunk/products/ERP5Banking/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 25 16:22:45 CET 2011


Author: aurel
Date: Fri Mar 25 16:22:45 2011
New Revision: 44629

URL: http://svn.erp5.org?rev=44629&view=rev
Log:
check the computed default exchange rate

Modified:
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencySale.py

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencySale.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencySale.py?rev=44629&r1=44628&r2=44629&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencySale.py [utf8] (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencySale.py [utf8] Fri Mar 25 16:22:45 2011
@@ -161,6 +161,13 @@ class TestERP5BankingCashToCurrencySale(
     self.assertEqual(cash_to_currency_sale.getDestination(), None)
     self.setDocumentSourceReference(cash_to_currency_sale)
     self.stepTic()
+    # Check the default exchange rate
+    rate = cash_to_currency_sale.CurrencyExchange_getExchangeRateList(from_currency=cash_to_currency_sale.getResource(),
+                                                                      to_currency='currency_module/%s' % (cash_to_currency_sale.Baobab_getPortalReferenceCurrencyID()),
+                                                                      currency_exchange_type='sale',
+                                                                      start_date=cash_to_currency_sale.getStartDate())[0]
+    self.assertEqual(rate, 650.0)
+
 
   def stepCreateValidIncomingLine(self, sequence=None, sequence_list=None,
       **kwd):



More information about the Erp5-report mailing list