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/__init__.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/__init__.py')
-rw-r--r-- | simplejson/tests/__init__.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/simplejson/tests/__init__.py b/simplejson/tests/__init__.py index e69de29..b33b654 100644 --- a/simplejson/tests/__init__.py +++ b/simplejson/tests/__init__.py @@ -0,0 +1,22 @@ +import unittest +import doctest + +def additional_tests(): + import simplejson + import simplejson.encoder + import simplejson.decoder + suite = unittest.TestSuite() + for mod in (simplejson, simplejson.encoder, simplejson.decoder): + suite.addTest(doctest.DocTestSuite(mod)) + return suite + +def main(): + suite = additional_tests() + runner = unittest.TextTestRunner() + runner.run(suite) + +if __name__ == '__main__': + import os + import sys + sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) + main()
\ No newline at end of file |