summaryrefslogtreecommitdiffstats
path: root/ipalib/tests/test_plugable.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-08-07 00:35:51 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-08-07 00:35:51 +0000
commit778a019129b919b4856fc54e2f9d58209685f159 (patch)
tree6a5acc9087bd092831a5b8a457ff0a62fc5d1a82 /ipalib/tests/test_plugable.py
parent19dbd5714167cca0cd48cfd73052a6d896ebc5a1 (diff)
downloadfreeipa.git-778a019129b919b4856fc54e2f9d58209685f159.tar.gz
freeipa.git-778a019129b919b4856fc54e2f9d58209685f159.tar.xz
freeipa.git-778a019129b919b4856fc54e2f9d58209685f159.zip
70: Plugin.__repr__ now again returns 'module_name.class_name()' form; updated unit test
Diffstat (limited to 'ipalib/tests/test_plugable.py')
-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 57827787..f529f4c2 100644
--- a/ipalib/tests/test_plugable.py
+++ b/ipalib/tests/test_plugable.py
@@ -68,7 +68,7 @@ def test_Plugin():
api = 'the api instance'
p = plugable.Plugin()
assert read_only(p, 'name') == 'Plugin'
- assert repr(p) == '%s.Plugin' % plugable.__name__
+ assert repr(p) == '%s.Plugin()' % plugable.__name__
assert read_only(p, 'api') is None
raises(AssertionError, p.finalize, None)
p.finalize(api)
@@ -79,7 +79,7 @@ def test_Plugin():
pass
p = some_plugin()
assert read_only(p, 'name') == 'some_plugin'
- assert repr(p) == '%s.some_plugin' % __name__
+ assert repr(p) == '%s.some_plugin()' % __name__
assert read_only(p, 'api') is None
raises(AssertionError, p.finalize, None)
p.finalize(api)