Commit 90403a22 authored by Aurel's avatar Aurel

do not test this on zope2.7 as security is not generated for accessors for this

zope version


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21502 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1a7efff9
......@@ -478,8 +478,11 @@ class TestPreferences(ERP5TypeTestCase):
self.assertEquals(['this_is_system'],
preference_tool.getPreferredAccountingTransactionSimulationStateList())
# check a user can't edit preference which are marked for manager
self.assertRaises(Unauthorized, user_pref.edit, preferred_ooodoc_server_address="localhost")
# check a user can't edit preference which are marked for manager (only for zope2.8)
try:
from ZODB.Transaction import Transaction
except ImportError:
self.assertRaises(Unauthorized, user_pref.edit, preferred_ooodoc_server_address="localhost")
......
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