Commit 34570466 authored by Vincent Pelletier's avatar Vincent Pelletier

Add checks for "Owner and Assignor" worklist for foo and bar users.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18900 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 73ad2599
...@@ -289,6 +289,10 @@ class TestWorklist(ERP5TypeTestCase): ...@@ -289,6 +289,10 @@ class TestWorklist(ERP5TypeTestCase):
entry_list = [x for x in result \ entry_list = [x for x in result \
if x['name'].startswith(self.actbox_owner_name)] if x['name'].startswith(self.actbox_owner_name)]
self.assertEquals(len(entry_list), 0) self.assertEquals(len(entry_list), 0)
self.logMessage("Check %s worklist as Owner and Assignor" % user_id)
entry_list = [x for x in result \
if x['name'].startswith(self.actbox_assignor_owner_name)]
self.assertEquals(len(entry_list), 0)
self.logout() self.logout()
for user_id in ('foo', ): for user_id in ('foo', ):
self.login(user_id) self.login(user_id)
...@@ -303,6 +307,12 @@ class TestWorklist(ERP5TypeTestCase): ...@@ -303,6 +307,12 @@ class TestWorklist(ERP5TypeTestCase):
entry_list = [x for x in result \ entry_list = [x for x in result \
if x['name'].startswith(self.actbox_owner_name)] if x['name'].startswith(self.actbox_owner_name)]
self.assertEquals(len(entry_list), 0) self.assertEquals(len(entry_list), 0)
self.logMessage("Check %s worklist as Owner and Assignor" % user_id)
entry_list = [x for x in result \
if x['name'].startswith(self.actbox_assignor_owner_name)]
self.assertEquals(len(entry_list), 1)
self.assertEquals(
self.getWorklistDocumentCountFromActionName(entry_list[0]['name']), 1)
self.logout() self.logout()
# Define foo and bar as Assignee # Define foo and bar as Assignee
......
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