Issue #7673: Fix security vulnerability (CVE-2010-2089) in the audioop module,
[python/dscho.git] / Lib / json / tests / test_pass2.py
blob80d8433091b274b885ca8b1fa9b1bf50f7741a22
1 from unittest import TestCase
2 import json
4 # from http://json.org/JSON_checker/test/pass2.json
5 JSON = r'''
6 [[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]
7 '''
9 class 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))