summaryrefslogtreecommitdiffstats
path: root/pyload/lib/simplejson/tests/test_pass3.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-08 00:30:40 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-14 11:02:52 +0200
commit25a6564b42c8e73843b63ca57357a3573ac48c9c (patch)
tree36d2f2c3edbfa425e945c927757449c0060b18d6 /pyload/lib/simplejson/tests/test_pass3.py
parentmodule -> pyload (diff)
downloadpyload-25a6564b42c8e73843b63ca57357a3573ac48c9c.tar.xz
[Lib] Update simplejson to v3.6.3 + one file wsgiserver + importing fixup
Diffstat (limited to 'pyload/lib/simplejson/tests/test_pass3.py')
-rw-r--r--pyload/lib/simplejson/tests/test_pass3.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/pyload/lib/simplejson/tests/test_pass3.py b/pyload/lib/simplejson/tests/test_pass3.py
new file mode 100644
index 000000000..821d60b22
--- /dev/null
+++ b/pyload/lib/simplejson/tests/test_pass3.py
@@ -0,0 +1,20 @@
+from unittest import TestCase
+
+import simplejson as json
+
+# from http://json.org/JSON_checker/test/pass3.json
+JSON = r'''
+{
+ "JSON Test Pattern pass3": {
+ "The outermost value": "must be an object or array.",
+ "In this test": "It is an object."
+ }
+}
+'''
+
+class TestPass3(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))