Http() now detects the proxy configuration
diff --git a/python2/httplib2test.py b/python2/httplib2test.py
index bcfc073..705cc38 100755
--- a/python2/httplib2test.py
+++ b/python2/httplib2test.py
@@ -1596,6 +1596,14 @@
pi = httplib2.ProxyInfo.from_environment()
self.assertEquals(pi, None)
+ def test_applies_to(self):
+ os.environ['http_proxy'] = 'http://myproxy.example.com:80'
+ os.environ['https_proxy'] = 'http://myproxy.example.com:81'
+ os.environ['no_proxy'] = 'localhost,otherhost.domain.local'
+ pi = httplib2.ProxyInfo.from_environment()
+ self.assertFalse(pi.applies_to('localhost'))
+ self.assertTrue(pi.applies_to('www.google.com'))
+
if __name__ == '__main__':
unittest.main()