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, 2 insertions, 2 deletions
diff --git a/ipalib/tests/test_plugable.py b/ipalib/tests/test_plugable.py
index 258f7b1d..91b9f6e8 100644
--- a/ipalib/tests/test_plugable.py
+++ b/ipalib/tests/test_plugable.py
@@ -127,7 +127,7 @@ def test_Plugin():
def test_ReadOnly():
obj = plugable.ReadOnly()
- obj._lock()
+ obj.__lock__()
names = ['not_an_attribute', 'an_attribute']
for name in names:
no_set(obj, name)
@@ -136,7 +136,7 @@ def test_ReadOnly():
class some_ro_class(plugable.ReadOnly):
def __init__(self):
self.an_attribute = 'Hello world!'
- self._lock()
+ self.__lock__()
obj = some_ro_class()
for name in names:
no_set(obj, name)