Commit b257dd9d authored by Aurel's avatar Aurel

it's system pref which outranks pref now


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21135 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bd04d972
......@@ -453,7 +453,7 @@ class TestPreferences(ERP5TypeTestCase):
self.assertEquals(['this_is_system'],
preference_tool.getPreferredAccountingTransactionSimulationStateList())
# create a user pref and check it outranks the system one if
# create a user pref and check it doesn't outranks the system one if
# they both defined same pref
user_pref = preference_tool.newContent(
portal_type='Preference',
......@@ -465,6 +465,8 @@ class TestPreferences(ERP5TypeTestCase):
get_transaction().commit()
self.tic()
self.assertEquals(['this_is_user'],
user_pref.getPreferredAccountingTransactionSimulationStateList())
self.assertEquals(['this_is_system'],
preference_tool.getPreferredAccountingTransactionSimulationStateList())
# check a user can't edit preference which are marked for manager
......
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