summaryrefslogtreecommitdiffstats
path: root/ipalib/tests/test_plugable.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-08-07 00:51:34 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-08-07 00:51:34 +0000
commitf904cb0422194dc55cf74366145b2cf20299b657 (patch)
treeb52fec5c08d7cceb97ae9c6449b04efbb9a050ce /ipalib/tests/test_plugable.py
parent778a019129b919b4856fc54e2f9d58209685f159 (diff)
downloadfreeipa.git-f904cb0422194dc55cf74366145b2cf20299b657.tar.gz
freeipa.git-f904cb0422194dc55cf74366145b2cf20299b657.tar.xz
freeipa.git-f904cb0422194dc55cf74366145b2cf20299b657.zip
71: Proxy now uses base.__public__ instead of base.public; updated unit tests
Diffstat (limited to 'ipalib/tests/test_plugable.py')
-rw-r--r--ipalib/tests/test_plugable.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ipalib/tests/test_plugable.py b/ipalib/tests/test_plugable.py
index f529f4c2..668d3406 100644
--- a/ipalib/tests/test_plugable.py
+++ b/ipalib/tests/test_plugable.py
@@ -110,7 +110,7 @@ def test_Proxy():
# Setup:
class base(object):
- public = frozenset((
+ __public__ = frozenset((
'public_0',
'public_1',
'__call__',
@@ -145,7 +145,7 @@ def test_Proxy():
i = plugin()
p = cls(base, i)
assert read_only(p, 'name') == 'user_add'
- assert list(p) == sorted(base.public)
+ assert list(p) == sorted(base.__public__)
# Test normal methods:
for n in xrange(2):
@@ -184,7 +184,7 @@ def test_NameSpace():
assert issubclass(cls, plugable.ReadOnly)
class base(object):
- public = frozenset((
+ __public__ = frozenset((
'plusplus',
))
@@ -353,7 +353,7 @@ def test_API():
# Setup the test bases, create the API:
class base0(plugable.Plugin):
- public = frozenset((
+ __public__ = frozenset((
'method',
))
@@ -361,7 +361,7 @@ def test_API():
return n
class base1(plugable.Plugin):
- public = frozenset((
+ __public__ = frozenset((
'method',
))