]>
git.proxmox.com Git - mirror_edk2.git/blob - AppPkg/Applications/Python/Python-2.7.2/Lib/json/tests/test_pass3.py
1 from json
.tests
import PyTest
, CTest
4 # from http://json.org/JSON_checker/test/pass3.json
7 "JSON Test Pattern pass3": {
8 "The outermost value": "must be an object or array.",
9 "In this test": "It is an object."
15 class TestPass3(object):
17 # test in/out equivalence and parsing
18 res
= self
.loads(JSON
)
20 self
.assertEqual(res
, self
.loads(out
))
23 class TestPyPass3(TestPass3
, PyTest
): pass
24 class TestCPass3(TestPass3
, CTest
): pass