[Erp5-report] r12933 - /erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashMovement.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Feb 21 14:49:35 CET 2007


Author: vincent
Date: Wed Feb 21 14:49:33 2007
New Revision: 12933

URL: http://svn.erp5.org?rev=12933&view=rev
Log:
Open counter date before runing tests.
Update workflow step naming following business template recent update.

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

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashMovement.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashMovement.py?rev=12933&r1=12932&r2=12933&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashMovement.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashMovement.py Wed Feb 21 14:49:33 2007
@@ -165,6 +165,7 @@
     self.createCashInventory(source=None, destination=self.vault_source, currency=self.currency_1,
                              line_list=line_list)
 
+    self.openCounterDate(site=self.paris)
 
 
 
@@ -453,30 +454,30 @@
     self.stepTic()
     # get state
     state = self.cash_movement.getSimulationState()
+    # check state is stopped
+    self.assertEqual(state, 'stopped')
+    # get workflow history
+    workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_movement, name='history', wf_id='cash_movement_workflow')
+    # check len of workflow history is 8
+    self.assertEqual(len(workflow_history), 8)
+
+
+  def stepConfirmCashMovement(self, sequence=None, sequence_list=None, **kwd):
+    """
+    Confirm the cash_movement and check it
+    """
+    # fix amount (10000 * 5.0 + 200 * 12.0)
+    self.cash_movement.setSourceTotalAssetPrice('52400.0')
+    # do the Workflow action
+    self.workflow_tool.doActionFor(self.cash_movement, 'confirm_action', wf_id='cash_movement_workflow')
+    # execute tic
+    self.stepTic()
+    # get state
+    state = self.cash_movement.getSimulationState()
     # check state is confirmed
     self.assertEqual(state, 'confirmed')
     # get workflow history
     workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_movement, name='history', wf_id='cash_movement_workflow')
-    # check len of workflow history is 8
-    self.assertEqual(len(workflow_history), 8)
-
-
-  def stepConfirmCashMovement(self, sequence=None, sequence_list=None, **kwd):
-    """
-    Confirm the cash_movement and check it
-    """
-    # fix amount (10000 * 5.0 + 200 * 12.0)
-    self.cash_movement.setSourceTotalAssetPrice('52400.0')
-    # do the Workflow action
-    self.workflow_tool.doActionFor(self.cash_movement, 'confirm_action', wf_id='cash_movement_workflow')
-    # execute tic
-    self.stepTic()
-    # get state
-    state = self.cash_movement.getSimulationState()
-    # check state is planned
-    self.assertEqual(state, 'planned')
-    # get workflow history
-    workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_movement, name='history', wf_id='cash_movement_workflow')
     # check len of workflow history is 4
     self.assertEqual(len(workflow_history), 4)
 
@@ -492,8 +493,8 @@
     self.stepTic()
     # get state
     state = self.cash_movement.getSimulationState()
-    # check state is ordered
-    self.assertEqual(state, 'ordered')
+    # check state is started
+    self.assertEqual(state, 'started')
     # get workflow history
     workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_movement, name='history', wf_id='cash_movement_workflow')
     # check len of workflow history is 4




More information about the Erp5-report mailing list