diff options
author | Bob Ippolito <bob@redivi.com> | 2008-05-03 17:54:12 +0000 |
---|---|---|
committer | Bob Ippolito <bob@redivi.com> | 2008-05-03 17:54:12 +0000 |
commit | 37594d7c05c0ceb30e3894950e33236aa07ebf73 (patch) | |
tree | 78a5b7e59ce9bd722babdcba44e3b290858a5472 /simplejson/tests/test_pass3.py | |
parent | f750b9beae59bcc8b69fece978202f118c01535e (diff) | |
download | simplejson-37594d7c05c0ceb30e3894950e33236aa07ebf73.tar.gz |
convert test suite to unittest, remove jsonfilter, bump version to 0.9
git-svn-id: http://simplejson.googlecode.com/svn/trunk@85 a4795897-2c25-0410-b006-0d3caba88fa1
Diffstat (limited to 'simplejson/tests/test_pass3.py')
-rw-r--r-- | simplejson/tests/test_pass3.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/simplejson/tests/test_pass3.py b/simplejson/tests/test_pass3.py index d94893f..017ea8e 100644 --- a/simplejson/tests/test_pass3.py +++ b/simplejson/tests/test_pass3.py @@ -1,3 +1,7 @@ +from unittest import TestCase + +import simplejson as S + # from http://json.org/JSON_checker/test/pass3.json JSON = r''' { @@ -8,9 +12,9 @@ JSON = r''' } ''' -def test_parse(): - # test in/out equivalence and parsing - import simplejson - res = simplejson.loads(JSON) - out = simplejson.dumps(res) - assert res == simplejson.loads(out) +class TestPass3(TestCase): + def test_parse(self): + # test in/out equivalence and parsing + res = S.loads(JSON) + out = S.dumps(res) + self.assertEquals(res, S.loads(out)) |