diff options
Diffstat (limited to 'tests/util.py')
-rw-r--r-- | tests/util.py | 7 |
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 |