summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-010-transliterate.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-02-08 20:58:07 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-02-08 20:58:07 +0100
commit735b07582b67fd06bfbb27a27f8aa3a2cda99702 (patch)
treebb3ddc9455872f6ed9a8674587501247ff10b0be /tests/unit/test-010-transliterate.py
parent394c40ea1ce96a403e322ed12cc5059bd8012a47 (diff)
downloadpykolab-735b07582b67fd06bfbb27a27f8aa3a2cda99702.tar.gz
Add more functional and unit tests for internationalization
Diffstat (limited to 'tests/unit/test-010-transliterate.py')
-rw-r--r--tests/unit/test-010-transliterate.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/test-010-transliterate.py b/tests/unit/test-010-transliterate.py
index 3c98a1a..e6b9000 100644
--- a/tests/unit/test-010-transliterate.py
+++ b/tests/unit/test-010-transliterate.py
@@ -99,5 +99,12 @@ class TestTransliteration(unittest.TestCase):
self.assertEqual('Yuliya', utils.translate(givenname, preferredlanguage))
self.assertEqual('Yolkina', utils.translate(surname, preferredlanguage))
+ def test_009_raw_decode(self):
+ raw_str = r"Николай"
+ self.assertEqual('Николай', raw_str.decode("string_escape"))
+
+ raw_str = r"raw"
+ self.assertEqual('raw', raw_str.decode("string_escape"))
+
if __name__ == '__main__':
unittest.main()