Go to the documentation of this file.00001
00002
00003 from __future__ import absolute_import, division, with_statement
00004 import unittest
00005
00006 TEST_MODULES = [
00007 'tornado.httputil.doctests',
00008 'tornado.iostream.doctests',
00009 'tornado.util.doctests',
00010 'tornado.test.auth_test',
00011 'tornado.test.curl_httpclient_test',
00012 'tornado.test.escape_test',
00013 'tornado.test.gen_test',
00014 'tornado.test.httpclient_test',
00015 'tornado.test.httpserver_test',
00016 'tornado.test.httputil_test',
00017 'tornado.test.import_test',
00018 'tornado.test.ioloop_test',
00019 'tornado.test.iostream_test',
00020 'tornado.test.options_test',
00021 'tornado.test.process_test',
00022 'tornado.test.simple_httpclient_test',
00023 'tornado.test.stack_context_test',
00024 'tornado.test.template_test',
00025 'tornado.test.testing_test',
00026 'tornado.test.twisted_test',
00027 'tornado.test.util_test',
00028 'tornado.test.web_test',
00029 'tornado.test.wsgi_test',
00030 ]
00031
00032
00033 def all():
00034 return unittest.defaultTestLoader.loadTestsFromNames(TEST_MODULES)
00035
00036 if __name__ == '__main__':
00037
00038
00039
00040 import warnings
00041
00042
00043
00044 warnings.filterwarnings("error")
00045
00046
00047 warnings.filterwarnings("ignore", category=DeprecationWarning)
00048 warnings.filterwarnings("error", category=DeprecationWarning,
00049 module=r"tornado\..*")
00050
00051
00052
00053 warnings.filterwarnings("ignore", category=DeprecationWarning,
00054 module=r"tornado\.platform\.twisted")
00055 warnings.filterwarnings("ignore", category=DeprecationWarning,
00056 module=r"tornado\.test\.twisted_test")
00057
00058 import tornado.testing
00059 tornado.testing.main()