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

Method test_roundtrips

Lib/test/test_urlparse.py:300–307  ·  view source on GitHub ↗
(self, bytes, url, parsed, split)

Source from the content-addressed store, hash-verified

298 (None, None, 'schème:path/to/file', None, None)),
299 ])
300 def test_roundtrips(self, bytes, url, parsed, split):
301 if bytes:
302 if not url.isascii():
303 self.skipTest('non-ASCII bytes')
304 url = str_encode(url)
305 parsed = tuple_encode(parsed)
306 split = tuple_encode(split)
307 self.checkRoundtrips(url, parsed, split)
308
309 @support.subTests('bytes', (False, True))
310 @support.subTests('url,url2,parsed,split', [

Callers

nothing calls this directly

Calls 5

checkRoundtripsMethod · 0.95
str_encodeFunction · 0.85
tuple_encodeFunction · 0.85
isasciiMethod · 0.80
skipTestMethod · 0.80

Tested by

no test coverage detected