Commit bc4247e4 authored by Łukasz Nowak's avatar Łukasz Nowak

- check that getACtivePreference returns user preference even if system preference is enabled


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28290 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b7587add
...@@ -467,6 +467,9 @@ class TestPreferences(ERP5TypeTestCase): ...@@ -467,6 +467,9 @@ class TestPreferences(ERP5TypeTestCase):
from ZODB.Transaction import Transaction from ZODB.Transaction import Transaction
except ImportError: except ImportError:
self.assertRaises(Unauthorized, user_pref.edit, preferred_ooodoc_server_address="localhost") self.assertRaises(Unauthorized, user_pref.edit, preferred_ooodoc_server_address="localhost")
# even if there is System Preference enabled getActivePreference shall return
# user preference
self.assertEqual(user_pref, preference_tool.getActivePreference())
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
......
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