'No port should be included in the host header when connecting to the
default HTTPS port even if it is in the URL.'

def test_HTTPSPort443(self):

    factory = client.HTTPClientFactory('https://foo.example.com:443/')
    proto = factory.buildProtocol('127.42.42.42')
    proto.makeConnection(StringTransport())
    self.assertEqual(self._getHost(proto.transport.value()), 'foo.example.com')
