diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-08 21:51:05 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-08 21:51:05 +0000 |
commit | 13f030d91e378064291d2065b547047bb3f175e8 (patch) | |
tree | 57a5c6b3c12b029d93877058f22839cc16ca10fb /ipalib/tests/test_plugable.py | |
parent | cb9c44270819c080f899fe7678f7f319686e681d (diff) | |
download | freeipa.git-13f030d91e378064291d2065b547047bb3f175e8.tar.gz freeipa.git-13f030d91e378064291d2065b547047bb3f175e8.tar.xz freeipa.git-13f030d91e378064291d2065b547047bb3f175e8.zip |
271: Improved __repr__ methods for better output from the show-plugins command
Diffstat (limited to 'ipalib/tests/test_plugable.py')
-rw-r--r-- | ipalib/tests/test_plugable.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/tests/test_plugable.py b/ipalib/tests/test_plugable.py index a7c4d61b..ec33989d 100644 --- a/ipalib/tests/test_plugable.py +++ b/ipalib/tests/test_plugable.py @@ -393,7 +393,7 @@ class test_Plugin(ClassChecker): api = 'the api instance' o = self.cls() assert read_only(o, 'name') == 'Plugin' - assert repr(o) == '%s.Plugin' % plugable.__name__ + assert repr(o) == '%s.Plugin()' % plugable.__name__ assert read_only(o, 'api') is None raises(AssertionError, o.finalize, None) o.finalize(api) @@ -404,7 +404,7 @@ class test_Plugin(ClassChecker): pass sub = some_plugin() assert read_only(sub, 'name') == 'some_plugin' - assert repr(sub) == '%s.some_plugin' % __name__ + assert repr(sub) == '%s.some_plugin()' % __name__ assert read_only(sub, 'api') is None raises(AssertionError, sub.finalize, None) sub.finalize(api) |