def test_instance_and_callable(self):
proxy_info = httplib2.proxy_info_from_url('http://myproxy.example.com')
http = httplib2.Http(proxy_info=proxy_info)
self.assertIsInstance(http.pool, urllib3.ProxyManager)
http = httplib2.Http(proxy_info=lambda: proxy_info)
self.assertIsInstance(http.pool, urllib3.ProxyManager)
评论列表
文章目录