import_test.py
Go to the documentation of this file.
00001 from __future__ import absolute_import, division, print_function, with_statement
00002 from tornado.test.util 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.concurrent
00013         # import tornado.curl_httpclient  # depends on pycurl
00014         import tornado.escape
00015         import tornado.gen
00016         import tornado.http1connection
00017         import tornado.httpclient
00018         import tornado.httpserver
00019         import tornado.httputil
00020         import tornado.ioloop
00021         import tornado.iostream
00022         import tornado.locale
00023         import tornado.log
00024         import tornado.netutil
00025         import tornado.options
00026         import tornado.process
00027         import tornado.simple_httpclient
00028         import tornado.stack_context
00029         import tornado.tcpserver
00030         import tornado.template
00031         import tornado.testing
00032         import tornado.util
00033         import tornado.web
00034         import tornado.websocket
00035         import tornado.wsgi
00036 
00037     # for modules with dependencies, if those dependencies can be loaded,
00038     # load them too.
00039 
00040     def test_import_pycurl(self):
00041         try:
00042             import pycurl
00043         except ImportError:
00044             pass
00045         else:
00046             import tornado.curl_httpclient


rosbridge_tools
Author(s): Jonathan Mace
autogenerated on Sun Dec 28 2014 11:43:21