From 25a6564b42c8e73843b63ca57357a3573ac48c9c Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 8 Sep 2014 00:30:40 +0200 Subject: [Lib] Update simplejson to v3.6.3 + one file wsgiserver + importing fixup --- pyload/lib/simplejson/tests/test_pass3.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pyload/lib/simplejson/tests/test_pass3.py (limited to 'pyload/lib/simplejson/tests/test_pass3.py') 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)) -- cgit v1.2.3