import_test.py
Go to the documentation of this file.
00001 from __future__ import absolute_import, division, with_statement
00002 import unittest
00003 
00004 
00005 class ImportTest(unittest.TestCase):
00006     def test_import_everything(self):
00007         # Some of our modules are not otherwise tested.  Import them
00008         # all (unless they have external dependencies) here to at
00009         # least ensure that there are no syntax errors.
00010         import tornado.auth
00011         import tornado.autoreload
00012         # import tornado.curl_httpclient  # depends on pycurl
00013         # import tornado.database  # depends on MySQLdb
00014         import tornado.escape
00015         import tornado.httpclient
00016         import tornado.httpserver
00017         import tornado.httputil
00018         import tornado.ioloop
00019         import tornado.iostream
00020         import tornado.locale
00021         import tornado.options
00022         import tornado.netutil
00023         # import tornado.platform.twisted # depends on twisted
00024         import tornado.process
00025         import tornado.simple_httpclient
00026         import tornado.stack_context
00027         import tornado.template
00028         import tornado.testing
00029         import tornado.util
00030         import tornado.web
00031         import tornado.websocket
00032         import tornado.wsgi
00033 
00034     # for modules with dependencies, if those dependencies can be loaded,
00035     # load them too.
00036 
00037     def test_import_pycurl(self):
00038         try:
00039             import pycurl
00040         except ImportError:
00041             pass
00042         else:
00043             import tornado.curl_httpclient
00044 
00045     def test_import_mysqldb(self):
00046         try:
00047             import MySQLdb
00048         except ImportError:
00049             pass
00050         else:
00051             import tornado.database
00052 
00053     def test_import_twisted(self):
00054         try:
00055             import twisted
00056         except ImportError:
00057             pass
00058         else:
00059             import tornado.platform.twisted


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Mon Oct 6 2014 06:58:14