aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-11-13 16:28:05 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-11-13 16:28:05 +0100
commit609a61e3e6fffce3d45e845f33ae2c5fa2d432ac (patch)
treeb602c3d87ff8d9f04edaa9f1e258fa58a3aace91 /test
parentbf951c5e29548cfed80480389762edd29fcc8825 (diff)
downloadyoutube-dl-609a61e3e6fffce3d45e845f33ae2c5fa2d432ac.tar.xz
[npo] Improve npo.nl (Fixes #4173)
Diffstat (limited to 'test')
-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 a9649397f..edd95c3e3 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -284,6 +284,10 @@ class TestUtil(unittest.TestCase):
d = json.loads(stripped)
self.assertEqual(d, [{"id": "532cb", "x": 3}])
+ stripped = strip_jsonp('parseMetadata({"STATUS":"OK"})\n\n\n//epc')
+ d = json.loads(stripped)
+ self.assertEqual(d, {'STATUS': 'OK'})
+
def test_uppercase_escape(self):
self.assertEqual(uppercase_escape('aä'), 'aä')
self.assertEqual(uppercase_escape('\\U0001d550'), '𝕐')