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

Method test_roundtrips

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

Source from the content-addressed store, hash-verified

267 ('', '', 'schème:path/to/file', '', '')),
268 ])
269 def test_roundtrips(self, bytes, url, parsed, split):
270 if bytes:
271 if not url.isascii():
272 self.skipTest('non-ASCII bytes')
273 url = str_encode(url)
274 parsed = tuple_encode(parsed)
275 split = tuple_encode(split)
276 self.checkRoundtrips(url, parsed, split)
277
278 @support.subTests('bytes', (False, True))
279 @support.subTests('url,url2,parsed,split', [

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected