def test_HTTPSPort443(self):
        """
        No port should be included in the host header when connecting to the
        default HTTPS port even if it is in the URL.
        """
        factory = client.HTTPClientFactory(b'https://foo.example.com:443/')
        proto = factory.buildProtocol('127.42.42.42')
        proto.makeConnection(StringTransport())
        self.assertEqual(self._getHost(proto.transport.value()),
                          b'foo.example.com')

        No port should be included in the host header when connecting to the
        default HTTPS port even if it is in the URL.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_webclient.py