'Brackets around IPv6 addresses are stripped in the host field. The host
field is then exported with brackets in the output of
L{client.URI.toBytes}.'

def test_hostBracketIPv6AddressLiteral(self):

    uri = client.URI.fromBytes('http://[::1]:80/index.html')
    self.assertEqual(uri.host, '::1')
    self.assertEqual(uri.netloc, '[::1]:80')
    self.assertEqual(uri.toBytes(), 'http://[::1]:80/index.html')
