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         
00017         self.assertTrue(isinstance(client, CurlAsyncHTTPClient))
00018         return client
00019 
00020 
00021 
00022 del HTTPClientCommonTestCase
00023 
00024 if pycurl is None:
00025     del CurlHTTPClientCommonTestCase