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

Method test_geturl

Lib/test/test_urllibnet.py:94–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92 self.assertEqual(info_obj.get_content_subtype(), "html")
93
94 def test_geturl(self):
95 # Make sure same URL as opened is returned by geturl.
96 with self.urlopen(self.url) as open_url:
97 gotten_url = open_url.geturl()
98 self.assertEqual(gotten_url, self.url)
99
100 def test_getcode(self):
101 # test getcode() with the fancy opener to get 404 error codes

Callers

nothing calls this directly

Calls 3

urlopenMethod · 0.95
geturlMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected