[Erp5-report] r29734 - /erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Oct 16 11:13:49 CEST 2009
Author: nicolas.dumazet
Date: Fri Oct 16 11:13:45 2009
New Revision: 29734
URL: http://svn.erp5.org?rev=29734&view=rev
Log:
self.workflow_tool is *not* defined in ERP5TypeTestCase or in parent classes.
Modified:
erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
Modified: erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py?rev=29734&r1=29733&r2=29734&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py [utf8] Fri Oct 16 11:13:45 2009
@@ -646,10 +646,11 @@
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=object, name='history', wf_id=workflow_id))
+ workflow_tool = self.getWorkflowTool()
+ reference_history_length = len(workflow_tool.getInfoFor(ob=object, name='history', wf_id=workflow_id))
reference_workflow_state = object.getSimulationState()
- 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.assertRaises(ValidationFailed, workflow_tool.doActionFor, object, transition_id, wf_id=workflow_id)
+ workflow_history = workflow_tool.getInfoFor(ob=object, name='history', wf_id=workflow_id)
self.assertEqual(len(workflow_history), reference_history_length + 1)
workflow_error_message = str(workflow_history[-1]['error_message'])
if error_message is not None:
More information about the Erp5-report
mailing list