]> git.proxmox.com Git - mirror_edk2.git/blame - AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/test_pass2.py
AppPkg/Applications/Python/Python-2.7.10: Initial Checkin part 4/5.
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.10 / Lib / json / tests / test_pass2.py
CommitLineData
3257aa99
DM
1from json.tests import PyTest, CTest\r
2\r
3\r
4# from http://json.org/JSON_checker/test/pass2.json\r
5JSON = r'''\r
6[[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]\r
7'''\r
8\r
9class TestPass2(object):\r
10 def test_parse(self):\r
11 # test in/out equivalence and parsing\r
12 res = self.loads(JSON)\r
13 out = self.dumps(res)\r
14 self.assertEqual(res, self.loads(out))\r
15\r
16\r
17class TestPyPass2(TestPass2, PyTest): pass\r
18class TestCPass2(TestPass2, CTest): pass\r