ยปCore Development>Code coverage>Lib/test/test_json/test_pass2.py

Python code coverage for Lib/test/test_json/test_pass2.py

#countcontent
1n/afrom test.test_json import PyTest, CTest
2n/a
3n/a
4n/a# from http://json.org/JSON_checker/test/pass2.json
5n/aJSON = r'''
6n/a[[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]
7n/a'''
8n/a
9n/aclass TestPass2:
10n/a def test_parse(self):
11n/a # test in/out equivalence and parsing
12n/a res = self.loads(JSON)
13n/a out = self.dumps(res)
14n/a self.assertEqual(res, self.loads(out))
15n/a
16n/a
17n/aclass TestPyPass2(TestPass2, PyTest): pass
18n/aclass TestCPass2(TestPass2, CTest): pass