projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[cracked] Add new extractor
[youtube-dl]
/
test
/
test_utils.py
diff --git
a/test/test_utils.py
b/test/test_utils.py
index 2348c04159e54cb5fe293fcd300c2f25116588a6..51eb0b6b936c7ea5d21cfef9bdc0b70f2ee7663a 100644
(file)
--- 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,
xpath_with_ns,
parse_iso8601,
strip_jsonp,
+ uppercase_escape,
)
if sys.version_info < (3, 0):
)
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}])
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()
if __name__ == '__main__':
unittest.main()