diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2010-02-08 05:03:28 -0700 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-02-12 17:07:37 -0500 |
commit | 069763c5c616221fd0bcea813cad93ae3f7c072d (patch) | |
tree | 3c7944836ca68119671482e3ee2f9365032fa640 /tests | |
parent | 338578d10ac0978a00948971a17a89dc95435954 (diff) | |
download | freeipa-069763c5c616221fd0bcea813cad93ae3f7c072d.tar.gz freeipa-069763c5c616221fd0bcea813cad93ae3f7c072d.tar.xz freeipa-069763c5c616221fd0bcea813cad93ae3f7c072d.zip |
Add Object.label class attribute, enable in webUI
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_ipalib/test_text.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test_ipalib/test_text.py b/tests/test_ipalib/test_text.py index 924534a03..dc5d02f8b 100644 --- a/tests/test_ipalib/test_text.py +++ b/tests/test_ipalib/test_text.py @@ -39,6 +39,25 @@ class test_LazyText(object): assert inst.localedir == 'bar' +class test_FixMe(object): + klass = text.FixMe + + def test_init(self): + inst = self.klass('user.label') + assert inst.msg == 'user.label' + assert inst.domain is None + assert inst.localedir is None + + def test_repr(self): + inst = self.klass('user.label') + assert repr(inst) == "FixMe('user.label')" + + def test_unicode(self): + inst = self.klass('user.label') + assert unicode(inst) == u'<user.label>' + assert type(unicode(inst)) is unicode + + class test_Gettext(object): klass = text.Gettext |