Commit 13388c49 authored by wenjie.zheng's avatar wenjie.zheng

testTranslation.py: use getWorkflowsFor to achive the test compatibility.

parent d804dd9a
...@@ -306,8 +306,9 @@ class TestWorkflowStateTitleTranslation(ERP5TypeTestCase): ...@@ -306,8 +306,9 @@ class TestWorkflowStateTitleTranslation(ERP5TypeTestCase):
# Get one portal type and its related workflow # Get one portal type and its related workflow
portal_type_id = 'Bug' portal_type_id = 'Bug'
workflow_id = 'bug_workflow' workflow_id = 'bug_workflow'
assert(workflow_id in \ workflow_value = self.portal.portal_workflow._getOb(workflow_id)
self.portal.portal_workflow.getChainFor(portal_type_id)) assert(workflow_value in \
self.portal.portal_workflow.getWorkflowsFor(portal_type_id))
bug = self.portal.getDefaultModule(portal_type_id).newContent( bug = self.portal.getDefaultModule(portal_type_id).newContent(
portal_type=portal_type_id) portal_type=portal_type_id)
state_title = bug.getSimulationStateTitle() state_title = bug.getSimulationStateTitle()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment