curl_httpclient_test.py
Go to the documentation of this file.
00001 from __future__ import absolute_import, division, with_statement
00002 from tornado.test.httpclient_test import HTTPClientCommonTestCase
00003 
00004 try:
00005     import pycurl
00006 except ImportError:
00007     pycurl = None
00008 
00009 if pycurl is not None:
00010     from tornado.curl_httpclient import CurlAsyncHTTPClient
00011 
00012 
00013 class CurlHTTPClientCommonTestCase(HTTPClientCommonTestCase):
00014     def get_http_client(self):
00015         client = CurlAsyncHTTPClient(io_loop=self.io_loop)
00016         # make sure AsyncHTTPClient magic doesn't give us the wrong class
00017         self.assertTrue(isinstance(client, CurlAsyncHTTPClient))
00018         return client
00019 
00020 # Remove the base class from our namespace so the unittest module doesn't
00021 # try to run it again.
00022 del HTTPClientCommonTestCase
00023 
00024 if pycurl is None:
00025     del CurlHTTPClientCommonTestCase


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