Commit 62b85fd5 authored by Vincent Pelletier's avatar Vincent Pelletier

HQ is not supposed to be able to finish, not to deliver.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19247 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 91856c5e
......@@ -641,11 +641,11 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase):
"""
self.assertRaises(Unauthorized, self.workflow_tool.doActionFor, self.hq_mutilated_banknote, 'plan_action', wf_id='mutilated_banknote_workflow')
def stepTryDeliverHQDocument(self, sequence=None, sequence_list=None, **kw):
def stepTryFinishHQDocument(self, sequence=None, sequence_list=None, **kw):
"""
It must not be possible (ie, action not present) to deliver when the document is initiated in HQ.
It must not be possible (ie, action not present) to finish when the document is sent to HQ.
"""
self.assertRaises(Unauthorized, self.workflow_tool.doActionFor, self.hq_mutilated_banknote, 'deliver_action', wf_id='mutilated_banknote_workflow')
self.assertRaises(Unauthorized, self.workflow_tool.doActionFor, self.hq_mutilated_banknote, 'finish_action', wf_id='mutilated_banknote_workflow')
def stepFinishHQDocument(self, sequence=None, sequence_list=None, **kw):
"""
......
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