blob: de4ee00bc60479c0e076a276ab85747d8419d860 [file] [log] [blame]
jcgregorio@wpgntai-ubiq72.hot.corp.google.comed132522010-04-19 11:12:52 -07001from unittest import TestCase
2import simplejson as 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)
14 self.assertEquals(res, json.loads(out))