'L{http.Request.setHost} sets the value of the host request header.
The port should not be added because it is the default.'

def test_setHostSSL(self):

    d = DummyChannel()
    d.transport = DummyChannel.SSL()
    req = http.Request(d, False)
    req.setHost('example.com', 443)
    self.assertEqual(req.requestHeaders.getRawHeaders('host'), ['example.com'])
