aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-07-21 12:30:18 +0700
committerSergey M․ <dstftw@gmail.com>2018-07-21 12:30:18 +0700
commite9c671d5e86e43785382ae9cb20c8e7676c7c9bf (patch)
tree27cf0a3dbdf3ad03d76fc60e0a774d82a6be6dd0 /test
parentfd62b36680ff7d7bea789ac0031a33fc2d9270ad (diff)
[utils] Allow JSONP with empty func name (closes #17028)
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 e63af0166..de841b1a0 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -717,6 +717,10 @@ class TestUtil(unittest.TestCase):
d = json.loads(stripped)
self.assertEqual(d, {'status': 'success'})
+ stripped = strip_jsonp('({"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'), '𝕐')