'Parsing a I{URI} splits the network location component into I{host} and
I{port}.'

def test_netlocHostPort(self):

    uri = client.URI.fromBytes(self.makeURIString('http://HOST:5144'))
    self.assertEqual(5144, uri.port)
    self.assertEqual(self.host, uri.host)
    self.assertEqual((self.uriHost + ':5144'), uri.netloc)
    uri = client.URI.fromBytes(self.makeURIString('http://HOST    '))
    self.assertEqual(self.uriHost, uri.netloc)
