Commit 2c11d18d authored by iv's avatar iv

ERP5Workflow: add test accessing to Base_viewDict on Transition

parent 25a91500
......@@ -235,11 +235,17 @@ class TestERP5Workflow(ERP5TypeTestCase):
def test_Base_viewDict(self):
workflow = self.workflow_module.newContent(portal_type='Workflow')
transition = workflow.newContent(portal_type='Transition')
self.commit()
self.logMessage
http_response = self.publish(transition.getPath() + '/Base_viewDict')
state = workflow.newContent(portal_type='State', title='Some State')
transition = workflow.newContent(portal_type='Transition',
title='Some Transition')
transition.setReference('change_something')
transition.setGuardRoleList(['Assignee', 'Assignor'])
transition.setCategoryList('destination/' + transition.getPath())
http_response = self.publish(transition.getPath() + '/Base_viewDict',
basic='ERP5TypeTestCase:',)
self.logMessage('path: ' + transition.getPath() + '/Base_viewDict')
self.logMessage(str(http_response.status) + '\n')
self.assertEqual(http_response.status, 200)
def test_WorkflowSecurity(self):
......
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