summaryrefslogtreecommitdiffstats
path: root/ipalib/tests
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/tests')
-rw-r--r--ipalib/tests/test_plugable.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipalib/tests/test_plugable.py b/ipalib/tests/test_plugable.py
index ad1645f12..af6ee0c94 100644
--- a/ipalib/tests/test_plugable.py
+++ b/ipalib/tests/test_plugable.py
@@ -139,6 +139,7 @@ def test_Plugin():
def test_ReadOnly():
obj = plugable.ReadOnly()
+ obj._lock()
names = ['not_an_attribute', 'an_attribute']
for name in names:
no_set(obj, name)
@@ -146,7 +147,8 @@ def test_ReadOnly():
class some_ro_class(plugable.ReadOnly):
def __init__(self):
- object.__setattr__(self, 'an_attribute', 'Hello world!')
+ self.an_attribute = 'Hello world!'
+ self._lock()
obj = some_ro_class()
for name in names:
no_set(obj, name)