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

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jan 31 12:38:04 CET 2008


Author: vincent
Date: Thu Jan 31 12:38:04 2008
New Revision: 18943

URL: http://svn.erp5.org?rev=18943&view=rev
Log:
Set DestinationTotalAssetPrice on HQ document when archiving it, just like it's done when using "finish" transition.

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

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py?rev=18943&r1=18942&r2=18943&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py Thu Jan 31 12:38:04 2008
@@ -160,7 +160,10 @@
     """
       Archive HQ document.
     """
+    self.hq_mutilated_banknote.setDestinationTotalAssetPrice(50000.0)
+    self.assertEqual(self.hq_mutilated_banknote.getDestinationTotalAssetPrice(), 50000.0)
     self.workflow_tool.doActionFor(self.hq_mutilated_banknote, 'archive_action', wf_id='mutilated_banknote_workflow')
+    self.stepTic()
     self.assertEqual(self.hq_mutilated_banknote.getSimulationState(), 'archived')
 
   def stepCheckInitialInventory(self, sequence=None, sequence_list=None, **kwd):




More information about the Erp5-report mailing list