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

Method test_url_fullurl_get_full_url

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

Source from the content-addressed store, hash-verified

2094 self.assertEqual(req.get_full_url(), url)
2095
2096 def test_url_fullurl_get_full_url(self):
2097 urls = ['http://docs.python.org',
2098 'http://docs.python.org/library/urllib2.html#OK',
2099 'http://www.python.org/?qs=query#fragment=true']
2100 for url in urls:
2101 req = Request(url)
2102 self.assertEqual(req.get_full_url(), req.full_url)
2103
2104
2105if __name__ == "__main__":

Callers

nothing calls this directly

Calls 3

get_full_urlMethod · 0.95
RequestClass · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected