[Erp5-report] r10476 - /erp5/trunk/products/ERP5Banking/tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Oct 2 13:14:29 CEST 2006
Author: seb
Date: Mon Oct 2 13:14:27 2006
New Revision: 10476
URL: http://svn.erp5.org?rev=10476&view=rev
Log:
make sure to set well the source reference
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=10476&r1=10475&r2=10476&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencySale.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencySale.py Mon Oct 2 13:14:27 2006
@@ -206,8 +206,15 @@
"""
Create a cash sorting document and check it
"""
- # Cash sorting has encaisse_paris for source, guichet_1 for destination, and a price cooreponding to the sum of banknote of 10000 and banknotes of 200 ( (2+3) * 10000 + (2+3) * 200 )
- self.cash_to_currency_sale = self.cash_to_currency_sale_module.newContent(id='cash_to_currency_sale_1', portal_type='Cash To Currency Sale', source_value=self.guichet, destination_value=None, resource_value = self.currency_2, source_total_asset_price=100.0, discount = 3000.0, quantity = 70000.0)
+ # Create Cash sorting
+ self.cash_to_currency_sale = self.cash_to_currency_sale_module.newContent(
+ id='cash_to_currency_sale_1',
+ portal_type='Cash To Currency Sale',
+ source_value=self.guichet,
+ destination_value=None,
+ resource_value = self.currency_2,
+ source_total_asset_price=100.0,
+ discount = 3000.0, quantity = 70000.0)
# execute tic
self.stepTic()
# check we have only one cash sorting
@@ -220,6 +227,7 @@
self.assertEqual(self.cash_to_currency_sale.getSource(), 'site/testsite/paris/surface/banque_interne/guichet_1')
# check that its destination is guichet_1
self.assertEqual(self.cash_to_currency_sale.getDestination(), None)
+ self.setDocumentSourceReference(self.cash_to_currency_sale)
#def stepCreateValidIncomingLine(self, sequence=None, sequence_list=None, **kwd):
@@ -433,7 +441,7 @@
+ 'Tic CheckTotal ' \
+ 'DeliverCashToCurrencySale Tic ' \
+ 'CheckFinalInventoryGuichet_Entrante ' \
- + 'CheckFinalInventoryGuichet_Sortante'
+ + 'CheckFinalInventoryGuichet_Sortante'
sequence_list.addSequenceString(sequence_string)
# play the sequence
sequence_list.play(self)
More information about the Erp5-report
mailing list