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

Method test_RFC2732

Lib/test/test_urlparse.py:760–765  ·  view source on GitHub ↗
(self, bytes, url, hostname, port)

Source from the content-addressed store, hash-verified

758 '::ffff:12.34.56.78', None),
759 ])
760 def test_RFC2732(self, bytes, url, hostname, port):
761 if bytes:
762 url = str_encode(url)
763 hostname = str_encode(hostname)
764 urlparsed = urllib.parse.urlparse(url)
765 self.assertEqual((urlparsed.hostname, urlparsed.port), (hostname, port))
766
767 @support.subTests('bytes', (False, True))
768 @support.subTests('invalid_url', [

Callers

nothing calls this directly

Calls 2

str_encodeFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected