From 012f8b890659fcebd974dfd5090ef1aadc97ca4d Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Tue, 20 Mar 2007 12:51:28 +0000 Subject: [PATCH] Forgot to update variable name of object on which the transition is passed. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13519 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/tests/ERP5TypeTestCase.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/product/ERP5Type/tests/ERP5TypeTestCase.py b/product/ERP5Type/tests/ERP5TypeTestCase.py index 1d376e6db9..a02facb4f8 100644 --- a/product/ERP5Type/tests/ERP5TypeTestCase.py +++ b/product/ERP5Type/tests/ERP5TypeTestCase.py @@ -500,10 +500,10 @@ class ERP5TypeTestCase(PortalTestCase): If error_message is provided, it is asserted to be equal to the last workflow history error message. """ - reference_history_length = len(self.workflow_tool.getInfoFor(ob=self.account_incident, name='history', wf_id=workflow_id)) + reference_history_length = len(self.workflow_tool.getInfoFor(ob=object, name='history', wf_id=workflow_id)) reference_workflow_state = object.getSimulationState() - self.assertRaises(ValidationFailed, self.workflow_tool.doActionFor, self.account_incident, transition_id, wf_id=workflow_id) - workflow_history = self.workflow_tool.getInfoFor(ob=self.account_incident, name='history', wf_id=workflow_id) + self.assertRaises(ValidationFailed, self.workflow_tool.doActionFor, object, transition_id, wf_id=workflow_id) + workflow_history = self.workflow_tool.getInfoFor(ob=object, name='history', wf_id=workflow_id) self.assertEqual(len(workflow_history), reference_history_length + 1) if error_message is not None: self.assertEqual(str(workflow_history[-1]['error_message']), error_message) -- 2.30.9