aboutsummaryrefslogtreecommitdiff
path: root/test/test_utils.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-02-07 19:47:09 +0600
committerSergey M․ <dstftw@gmail.com>2016-02-07 19:47:09 +0600
commit8411229bd5e147ef1ac3420000c7c28ba660df2d (patch)
treee0401068ff23d53326a18dab586b5a1fea157164 /test/test_utils.py
parent72b9ebc65da3f1cb2f85d85b002674c8e5ae36ce (diff)
downloadyoutube-dl-8411229bd5e147ef1ac3420000c7c28ba660df2d.tar.xz
[utils] Allow dot in strip_jsonp
Diffstat (limited to 'test/test_utils.py')
-rw-r--r--test/test_utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index 909d0e51d..a1e416dd5 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -494,6 +494,10 @@ class TestUtil(unittest.TestCase):
d = json.loads(stripped)
self.assertEqual(d, {'STATUS': 'OK'})
+ stripped = strip_jsonp('ps.embedHandler({"status": "success"});')
+ d = json.loads(stripped)
+ self.assertEqual(d, {'status': 'success'})
+
def test_uppercase_escape(self):
self.assertEqual(uppercase_escape('aä'), 'aä')
self.assertEqual(uppercase_escape('\\U0001d550'), '𝕐')