diff options
| author | Gregory P. Smith <greg@krypto.org> | 2011-05-14 22:26:35 (GMT) |
|---|---|---|
| committer | Gregory P. Smith <greg@krypto.org> | 2011-05-14 22:26:35 (GMT) |
| commit | 873cab28903eb6a9063b502d7e9fe9555fc0cfd7 (patch) | |
| tree | ec7079b6ae9ce221158c134d18b64a336284d115 /Lib/test/json_tests/test_pass3.py | |
| parent | 12c9d028ed0a1803019f3796014e75c74d9de2f6 (diff) | |
| parent | 95e686686f600e6df18c32a5e808949517655868 (diff) | |
| download | cpython-873cab28903eb6a9063b502d7e9fe9555fc0cfd7.zip cpython-873cab28903eb6a9063b502d7e9fe9555fc0cfd7.tar.gz cpython-873cab28903eb6a9063b502d7e9fe9555fc0cfd7.tar.bz2 | |
merge heads.
Diffstat (limited to 'Lib/test/json_tests/test_pass3.py')
| -rw-r--r-- | Lib/test/json_tests/test_pass3.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Lib/test/json_tests/test_pass3.py b/Lib/test/json_tests/test_pass3.py index 9151c43..228eee8 100644 --- a/Lib/test/json_tests/test_pass3.py +++ b/Lib/test/json_tests/test_pass3.py @@ -1,6 +1,5 @@ -from unittest import TestCase +from test.json_tests import PyTest, CTest -import json # from http://json.org/JSON_checker/test/pass3.json JSON = r''' @@ -12,9 +11,14 @@ JSON = r''' } ''' -class TestPass3(TestCase): + +class TestPass3: def test_parse(self): # test in/out equivalence and parsing - res = json.loads(JSON) - out = json.dumps(res) - self.assertEqual(res, json.loads(out)) + res = self.loads(JSON) + out = self.dumps(res) + self.assertEqual(res, self.loads(out)) + + +class TestPyPass3(TestPass3, PyTest): pass +class TestCPass3(TestPass3, CTest): pass |
