MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_proxy

Method test_proxy

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

Source from the content-addressed store, hash-verified

2072 self.assertEqual("www.python.org", req.host)
2073
2074 def test_proxy(self):
2075 self.assertFalse(self.get.has_proxy())
2076 self.get.set_proxy("www.perl.org", "http")
2077 self.assertTrue(self.get.has_proxy())
2078 self.assertEqual("www.python.org", self.get.origin_req_host)
2079 self.assertEqual("www.perl.org", self.get.host)
2080
2081 def test_wrapped_url(self):
2082 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