Skip to content

Commit

Permalink
Make test as non manager
Browse files Browse the repository at this point in the history
  • Loading branch information
sgeulette committed Nov 16, 2015
1 parent 1defee1 commit 88a2a39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/collective/task/tests/test_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ def test_get_objects(self):
task2 = api.content.create(container=task1, type='task', id='task2', title='Task2')
self.assertEqual(utility.get_objects(task2), [task1])
alsoProvides(self.portal, ITaskContainer)
setRoles(self.portal, TEST_USER_ID, ['Manager'])
self.assertListEqual(utility.get_objects(task2), [task1, self.portal])
setRoles(self.portal, TEST_USER_ID, [])
self.assertListEqual(utility.get_objects(task2), [task1, self.portal])

0 comments on commit 88a2a39

Please sign in to comment.