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

Method test_unparse_parse

Lib/test/test_urlparse.py:358–362  ·  view source on GitHub ↗
(self, bytes, u)

Source from the content-addressed store, hash-verified

356 @support.subTests('bytes', (False, True))
357 @support.subTests('u', ['Python', './Python','x-newscheme://foo.com/stuff','x://y','x:/y','x:/','/',])
358 def test_unparse_parse(self, bytes, u):
359 if bytes:
360 u = str_encode(u)
361 self.assertEqual(urllib.parse.urlunsplit(urllib.parse.urlsplit(u)), u)
362 self.assertEqual(urllib.parse.urlunparse(urllib.parse.urlparse(u)), u)
363
364 def test_RFC1808(self):
365 # "normal" cases from RFC 1808:

Callers

nothing calls this directly

Calls 2

str_encodeFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected