diff options
author | Pavel Zuna <pzuna@redhat.com> | 2011-02-15 15:20:51 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-03-01 10:31:41 -0500 |
commit | 18dda28c563770730837e2b771a0acdc2e849158 (patch) | |
tree | 4d1514697c90de0de5876f23123c7a7b6c8fbedb /tests/test_ipalib/test_plugable.py | |
parent | f3de95ce99855cb15e26d8007c8901aaec96c595 (diff) | |
download | freeipa.git-18dda28c563770730837e2b771a0acdc2e849158.tar.gz freeipa.git-18dda28c563770730837e2b771a0acdc2e849158.tar.xz freeipa.git-18dda28c563770730837e2b771a0acdc2e849158.zip |
Fix i18n related failures in unit tests.
Diffstat (limited to 'tests/test_ipalib/test_plugable.py')
-rw-r--r-- | tests/test_ipalib/test_plugable.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_ipalib/test_plugable.py b/tests/test_ipalib/test_plugable.py index 147bff70..23b73309 100644 --- a/tests/test_ipalib/test_plugable.py +++ b/tests/test_ipalib/test_plugable.py @@ -25,7 +25,7 @@ import inspect from tests.util import raises, no_set, no_del, read_only from tests.util import getitem, setitem, delitem from tests.util import ClassChecker, create_test_api -from ipalib import plugable, errors +from ipalib import plugable, errors, text class test_SetProxy(ClassChecker): @@ -219,7 +219,7 @@ class test_Plugin(ClassChecker): assert o.name == 'Plugin' assert o.module == 'ipalib.plugable' assert o.fullname == 'ipalib.plugable.Plugin' - assert o.doc == inspect.getdoc(self.cls) + assert isinstance(o.doc, text.Gettext) class some_subclass(self.cls): """ Do sub-classy things. @@ -234,12 +234,11 @@ class test_Plugin(ClassChecker): assert o.name == 'some_subclass' assert o.module == __name__ assert o.fullname == '%s.some_subclass' % __name__ - assert o.doc == inspect.getdoc(some_subclass) assert o.summary == 'Do sub-classy things.' + assert isinstance(o.doc, text.Gettext) class another_subclass(self.cls): pass o = another_subclass() - assert o.doc is None assert o.summary == '<%s>' % o.fullname # Test that Plugin makes sure the subclass hasn't defined attributes |