summaryrefslogtreecommitdiffstats
path: root/Lib/test/json_tests/test_pass2.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/json_tests/test_pass2.py')
-rw-r--r--Lib/test/json_tests/test_pass2.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/Lib/test/json_tests/test_pass2.py b/Lib/test/json_tests/test_pass2.py
new file mode 100644
index 0000000..379117e
--- /dev/null
+++ b/Lib/test/json_tests/test_pass2.py
@@ -0,0 +1,14 @@
+from unittest import TestCase
+import json
+
+# from http://json.org/JSON_checker/test/pass2.json
+JSON = r'''
+[[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]
+'''
+
+class TestPass2(TestCase):
+ def test_parse(self):
+ # test in/out equivalence and parsing
+ res = json.loads(JSON)
+ out = json.dumps(res)
+ self.assertEqual(res, json.loads(out))