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

Method test_RFC2732

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

Source from the content-addressed store, hash-verified

720 '::ffff:12.34.56.78', None),
721 ])
722 def test_RFC2732(self, bytes, url, hostname, port):
723 if bytes:
724 url = str_encode(url)
725 hostname = str_encode(hostname)
726 urlparsed = urllib.parse.urlparse(url)
727 self.assertEqual((urlparsed.hostname, urlparsed.port), (hostname, port))
728
729 @support.subTests('bytes', (False, True))
730 @support.subTests('invalid_url', [

Callers

nothing calls this directly

Calls 2

str_encodeFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected