MCPcopy Index your code
hub / github.com/python/cpython / test_proxy

Method test_proxy

Lib/test/test_urllib2.py:2091–2096  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2089 self.assertEqual("www.python.org", req.host)
2090
2091 def test_proxy(self):
2092 self.assertFalse(self.get.has_proxy())
2093 self.get.set_proxy("www.perl.org", "http")
2094 self.assertTrue(self.get.has_proxy())
2095 self.assertEqual("www.python.org", self.get.origin_req_host)
2096 self.assertEqual("www.perl.org", self.get.host)
2097
2098 def test_wrapped_url(self):
2099 req = Request("<URL:http://www.python.org>")

Callers

nothing calls this directly

Calls 5

assertFalseMethod · 0.80
has_proxyMethod · 0.80
set_proxyMethod · 0.80
assertTrueMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected