blob: 379117e9055b79775f3866d9eae90df9b5394715 [file] [log] [blame]
Christian Heimes90540002008-05-08 14:29:10 +00001from unittest import TestCase
2import json
3
4# from http://json.org/JSON_checker/test/pass2.json
5JSON = r'''
6[[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]
7'''
8
9class TestPass2(TestCase):
10 def test_parse(self):
11 # test in/out equivalence and parsing
12 res = json.loads(JSON)
13 out = json.dumps(res)
Ezio Melottib3aedd42010-11-20 19:04:17 +000014 self.assertEqual(res, json.loads(out))