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

Method test_urlwithfrag

Lib/test/test_urllib2net.py:232–238  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

230## self._test_urls(urls, self._extra_handlers()+[bauth, dauth])
231
232 def test_urlwithfrag(self):
233 urlwith_frag = "http://www.pythontest.net/index.html#frag"
234 with socket_helper.transient_internet(urlwith_frag):
235 req = urllib.request.Request(urlwith_frag)
236 res = urllib.request.urlopen(req)
237 self.assertEqual(res.geturl(),
238 "http://www.pythontest.net/index.html#frag")
239
240 @support.requires_resource('walltime')
241 def test_redirect_url_withfrag(self):

Callers

nothing calls this directly

Calls 3

urlopenMethod · 0.45
assertEqualMethod · 0.45
geturlMethod · 0.45

Tested by

no test coverage detected