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