summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-010-transliterate.py
diff options
context:
space:
mode:
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()