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

Method test_geturl

Lib/test/test_urllib2_localnet.py:638–644  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

636
637
638 def test_geturl(self):
639 # Make sure same URL as opened is returned by geturl.
640 handler = self.start_server()
641 open_url = urllib.request.urlopen("http://localhost:%s" % handler.port)
642 with open_url:
643 url = open_url.geturl()
644 self.assertEqual(url, "http://localhost:%s" % handler.port)
645
646
647 def test_iteration(self):

Callers

nothing calls this directly

Calls 4

start_serverMethod · 0.95
urlopenMethod · 0.45
geturlMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected