Issue #7673: Fix security vulnerability (CVE-2010-2089) in the audioop module,
[python/dscho.git] / Lib / json / tests / test_pass3.py
blob77d87b2aa5edaf2dc40dd8e0d9e9fee2c772296a
1 from unittest import TestCase
3 import json
5 # from http://json.org/JSON_checker/test/pass3.json
6 JSON = r'''
8 "JSON Test Pattern pass3": {
9 "The outermost value": "must be an object or array.",
10 "In this test": "It is an object."
13 '''
15 class TestPass3(TestCase):
16 def test_parse(self):
17 # test in/out equivalence and parsing
18 res = json.loads(JSON)
19 out = json.dumps(res)
20 self.assertEquals(res, json.loads(out))