summaryrefslogtreecommitdiffstats
path: root/ipalib/tests
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-09-24 22:19:43 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-09-24 22:19:43 +0000
commit3d6ab69b46e5be32af94ecdfb5a696973eeaf7c4 (patch)
tree40764cbaa401737d0effd42ec498686b4f009e03 /ipalib/tests
parente2a680d7c9ca7416e9e3cffe25835fdee967c995 (diff)
downloadfreeipa.git-3d6ab69b46e5be32af94ecdfb5a696973eeaf7c4.tar.gz
freeipa.git-3d6ab69b46e5be32af94ecdfb5a696973eeaf7c4.tar.xz
freeipa.git-3d6ab69b46e5be32af94ecdfb5a696973eeaf7c4.zip
351: Removed Object.Method property and added in its place Object.methods instance attribute
Diffstat (limited to 'ipalib/tests')
-rw-r--r--ipalib/tests/test_frontend.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/ipalib/tests/test_frontend.py b/ipalib/tests/test_frontend.py
index 06d6b8cb..f0ba524d 100644
--- a/ipalib/tests/test_frontend.py
+++ b/ipalib/tests/test_frontend.py
@@ -760,7 +760,6 @@ class test_Object(ClassChecker):
def test_class(self):
assert self.cls.__bases__ == (plugable.Plugin,)
- assert type(self.cls.Method) is property
assert type(self.cls.Property) is property
def test_init(self):
@@ -768,7 +767,7 @@ class test_Object(ClassChecker):
Tests the `frontend.Object.__init__` method.
"""
o = self.cls()
- assert read_only(o, 'Method') is None
+ assert o.methods is None
assert read_only(o, 'Property') is None
def test_set_api(self):
@@ -798,13 +797,13 @@ class test_Object(ClassChecker):
cnt = 10
formats = dict(
- Method='method_%d',
+ methods='method_%d',
Property='property_%d',
)
class api(object):
Method = plugable.NameSpace(
- get_attributes(cnt, formats['Method'])
+ get_attributes(cnt, formats['methods'])
)
Property = plugable.NameSpace(
get_attributes(cnt, formats['Property'])
@@ -819,7 +818,7 @@ class test_Object(ClassChecker):
o = user()
o.set_api(api)
assert read_only(o, 'api') is api
- for name in ['Method', 'Property']:
+ for name in ['methods', 'Property']:
namespace = getattr(o, name)
assert isinstance(namespace, plugable.NameSpace)
assert len(namespace) == cnt