home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Maximum CD 2010 May
/
maximum-cd-2010-05.iso
/
DiscContents
/
boxee-0.9.20.10711.exe
/
system
/
python
/
local
/
simplejson
/
tests
/
test_pass2.py
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Python Source
|
2009-07-20
|
387 b
|
15 lines
from unittest import TestCase
import simplejson as json
# from http://json.org/JSON_checker/test/pass2.json
JSON = r'''
[[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]
'''
class TestPass2(TestCase):
def test_parse(self):
# test in/out equivalence and parsing
res = json.loads(JSON)
out = json.dumps(res)
self.assertEquals(res, json.loads(out))