Commit 2ea4fe91 authored by Jérome Perrin's avatar Jérome Perrin

asserts that current user does not have Modify portal content permission



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21019 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eb0be10c
......@@ -1754,6 +1754,8 @@ class TestTransactions(AccountingTestCase):
stop_date=DateTime(2001, 01, 01))
accounting_transaction.manage_permission('Modify portal content',
roles=['Manager'], acquire=0)
self.assertFalse(_checkPermission('Modify portal content',
accounting_transaction))
accounting_transaction.stop()
self.assertEquals('code-2001-1', accounting_transaction.getSourceReference())
......
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