From 6d6c0d81ddbfc56672f0595a5f631c5e846d8b2b Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Mon, 5 Jan 2009 02:20:09 -0700 Subject: New Param: decided on calling signature for rules; added unit tests for Bytes._rule_minlength, _rule_maxlength, and _rule_length --- tests/util.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/util.py') 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 -- cgit