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

Method test_roundtrips_normalization

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

Source from the content-addressed store, hash-verified

330 ('https', None, '/tmp/junk.txt', None, None)),
331 ])
332 def test_roundtrips_normalization(self, bytes, url, url2, parsed, split):
333 if bytes:
334 url = str_encode(url)
335 url2 = str_encode(url2)
336 parsed = tuple_encode(parsed)
337 split = tuple_encode(split)
338 self.checkRoundtrips(url, parsed, split, url2)
339
340 @support.subTests('bytes', (False, True))
341 @support.subTests('scheme', ('http', 'https'))

Callers

nothing calls this directly

Calls 3

checkRoundtripsMethod · 0.95
str_encodeFunction · 0.85
tuple_encodeFunction · 0.85

Tested by

no test coverage detected