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

Method test_unparse_parse

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

Source from the content-addressed store, hash-verified

392 @support.subTests('bytes', (False, True))
393 @support.subTests('u', ['Python', './Python','x-newscheme://foo.com/stuff','x://y','x:/y','x:/','/',])
394 def test_unparse_parse(self, bytes, u):
395 if bytes:
396 u = str_encode(u)
397 self.assertEqual(urllib.parse.urlunsplit(urllib.parse.urlsplit(u)), u)
398 self.assertEqual(urllib.parse.urlunparse(urllib.parse.urlparse(u)), u)
399
400 def test_RFC1808(self):
401 # "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