'L{client.URI.fromBytes} accepts a C{defaultPort} parameter that
overrides the normal default port logic.'

def test_parseCustomDefaultPort(self):

    uri = client.URI.fromBytes(self.makeURIString('http://HOST'), defaultPort=5144)
    self.assertEqual(5144, uri.port)
    uri = client.URI.fromBytes(self.makeURIString('https://HOST'), defaultPort=5144)
    self.assertEqual(5144, uri.port)
