8817bb2e |
1 | import unittest |
2 | import doctest |
3 | |
4 | def additional_tests(): |
5 | import simplejson |
6 | import simplejson.encoder |
7 | import simplejson.decoder |
8 | suite = unittest.TestSuite() |
9 | for mod in (simplejson, simplejson.encoder, simplejson.decoder): |
10 | suite.addTest(doctest.DocTestSuite(mod)) |
11 | suite.addTest(doctest.DocFileSuite('../../index.rst')) |
12 | return suite |
13 | |
14 | def main(): |
15 | suite = additional_tests() |
16 | runner = unittest.TextTestRunner() |
17 | runner.run(suite) |
18 | |
19 | if __name__ == '__main__': |
20 | import os |
21 | import sys |
22 | sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) |
23 | main() |