X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=test%2Ftest_utils.py;h=a1e416dd5fdd1e385a5a37e87b65e3d78e334b4a;hb=8411229bd5e147ef1ac3420000c7c28ba660df2d;hp=909d0e51d7d4594e85522fa48f00ae9cba66b19b;hpb=72b9ebc65da3f1cb2f85d85b002674c8e5ae36ce;p=youtube-dl 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'), '𝕐')