summaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/test-015-translate.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/unit/test-015-translate.py b/tests/unit/test-015-translate.py
index 6819b80..5eaf5d1 100644
--- a/tests/unit/test-015-translate.py
+++ b/tests/unit/test-015-translate.py
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
import unittest
import gettext
from pykolab import translate
@@ -17,7 +19,12 @@ class TestTranslate(unittest.TestCase):
translate.setUserLanguage('de_DE')
self.assertEqual(_("Folder name"), "Ordnername", "German Translation found")
translate.setUserLanguage('foo_bar')
- self.assertEqual(_("Folder name"), "Folder name", "Unkonwn language falls back to NullTranslations")
+ self.assertEqual(_("Folder name"), "Folder name", "Unknown language falls back to NullTranslations")
+
+ def test_004_unicode(self):
+ from pykolab.translate import _
+ translate.setUserLanguage('de_DE')
+ self.assertEqual(_("recipients: %r"), "Empfänger: %r")
if __name__ == '__main__':
unittest.main()