1 from unittest import TestCase
3 import simplejson as json
5 # from http://json.org/JSON_checker/test/pass3.json
8 "JSON Test Pattern pass3": {
9 "The outermost value": "must be an object or array.",
10 "In this test": "It is an object."
15 class TestPass3(TestCase):
17 # test in/out equivalence and parsing
18 res = json.loads(JSON)
20 self.assertEquals(res, json.loads(out))