From 1744723d11b2fbc93f43699f79df40d5d0b9305d Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Fri, 8 Aug 2008 21:49:09 +0000 Subject: 88: Renamed ReadOnly._lock() to ReadOnly.__lock__(); updated subclasses and unit tests --- ipalib/tests/test_plugable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipalib/tests') 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) -- cgit