Last change
on this file was 391, checked in by dmik, 11 years ago |
python: Merge vendor 2.7.6 to trunk.
|
-
Property svn:eol-style
set to
native
|
File size:
452 bytes
|
Line | |
---|
1 | from json.tests import PyTest, CTest
|
---|
2 |
|
---|
3 |
|
---|
4 | # from http://json.org/JSON_checker/test/pass2.json
|
---|
5 | JSON = r'''
|
---|
6 | [[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]
|
---|
7 | '''
|
---|
8 |
|
---|
9 | class TestPass2(object):
|
---|
10 | def test_parse(self):
|
---|
11 | # test in/out equivalence and parsing
|
---|
12 | res = self.loads(JSON)
|
---|
13 | out = self.dumps(res)
|
---|
14 | self.assertEqual(res, self.loads(out))
|
---|
15 |
|
---|
16 |
|
---|
17 | class TestPyPass2(TestPass2, PyTest): pass
|
---|
18 | class TestCPass2(TestPass2, CTest): pass
|
---|
Note:
See
TracBrowser
for help on using the repository browser.