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

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Oct 2 12:39:21 CEST 2006


Author: seb
Date: Mon Oct  2 12:39:18 2006
New Revision: 10475

URL: http://svn.erp5.org?rev=10475&view=rev
Log:
make sure the source reference is well defined

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=10475&r1=10474&r2=10475&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencyPurchase.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencyPurchase.py Mon Oct  2 12:39:18 2006
@@ -34,6 +34,7 @@
 from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
 from Testing.ZopeTestCase.PortalTestCase import PortalTestCase
 from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
+from DateTime import DateTime
 
 # Needed in order to have a log file inside the current folder
 os.environ['EVENT_LOG_FILE']     = os.path.join(os.getcwd(), 'zLOG.log')
@@ -235,6 +236,7 @@
     self.assertEqual(self.cash_to_currency_purchase.getSource(), 'site/testsite/paris/surface/banque_interne/guichet_1')
     # check that its destination is guichet_1
     self.assertEqual(self.cash_to_currency_purchase.getDestination(), None)
+    self.setDocumentSourceReference(self.cash_to_currency_purchase)
 
 
   #def stepCreateValidIncomingLine(self, sequence=None, sequence_list=None, **kwd):
@@ -400,10 +402,6 @@
     Deliver the cash sorting with a good user
     and check that the deliver of a cash tranfer have achieved
     """
-    #self.cash_to_currency_purchase.setSourceTotalAssetPrice('52400.0')
-    #     self.security_manager = AccessControl.getSecurityManager()
-    #     self.user = self.security_manager.getUser()
-    # do the workflow transition "deliver_action"
     self.workflow_tool.doActionFor(self.cash_to_currency_purchase, 'deliver_action', wf_id='cash_to_currency_purchase_workflow')
     # execute tic
     self.stepTic()




More information about the Erp5-report mailing list