diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-04-04 23:00:51 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-04-04 23:00:51 +0200 |
commit | 676eb3f2dd542be3e84780b18388253382d3e465 (patch) | |
tree | c2035c07369c1fd968404bc1074e6e1fb57b74bf /test | |
parent | 98b7cf1acefe398f792ca6ff4c5f84f1b7785fcb (diff) |
Fix unicode_escape (Fixes #2695)
Diffstat (limited to 'test')
-rw-r--r-- | test/test_utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index 2348c0415..51eb0b6b9 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -38,6 +38,7 @@ from youtube_dl.utils import ( xpath_with_ns, parse_iso8601, strip_jsonp, + uppercase_escape, ) if sys.version_info < (3, 0): @@ -279,6 +280,9 @@ class TestUtil(unittest.TestCase): d = json.loads(stripped) self.assertEqual(d, [{"id": "532cb", "x": 3}]) + def test_uppercase_escpae(self): + self.assertEqual(uppercase_escape(u'aä'), u'aä') + self.assertEqual(uppercase_escape(u'\\U0001d550'), u'𝕐') if __name__ == '__main__': unittest.main() |