summaryrefslogtreecommitdiffstats
path: root/tests/util.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2009-01-05 02:20:09 -0700
committerJason Gerard DeRose <jderose@redhat.com>2009-01-05 02:20:09 -0700
commit6d6c0d81ddbfc56672f0595a5f631c5e846d8b2b (patch)
treeaa7b6c0ca70e4211ba10a41015f0a932b08e8412 /tests/util.py
parentc121d0064bb7a7bd1a289ae29ceb2dee314c2d2f (diff)
downloadfreeipa-6d6c0d81ddbfc56672f0595a5f631c5e846d8b2b.tar.gz
freeipa-6d6c0d81ddbfc56672f0595a5f631c5e846d8b2b.tar.xz
freeipa-6d6c0d81ddbfc56672f0595a5f631c5e846d8b2b.zip
New Param: decided on calling signature for rules; added unit tests for Bytes._rule_minlength, _rule_maxlength, and _rule_length
Diffstat (limited to 'tests/util.py')
-rw-r--r--tests/util.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/util.py b/tests/util.py
index 9ed10016d..3033b82bd 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -290,8 +290,11 @@ class PluginTester(object):
class dummy_ugettext(object):
__called = False
- def __init__(self):
- self.translation = u'The translation'
+ def __init__(self, translation=None):
+ if translation is None:
+ translation = u'The translation'
+ self.translation = translation
+ assert type(self.translation) is unicode
def __call__(self, message):
assert type(message) is str