'normalize() will accept IPv6 notation and can separate host and port'

def test_normalization_for_ipv6(self):

    username = _get_system_username()
    for (description, input, output_) in (('Full    IPv6    address', '2001:DB8:0:0:0:0:0:1', (username, '2001:DB8:0:0:0:0:0:1', '22')), ('IPv6    address    in    short    form', '2001:DB8::1', (username, '2001:DB8::1', '22')), ('IPv6    localhost', '::1', (username, '::1', '22')), ('Square    brackets    are    required    to    separate    non-standard    port    from    IPv6    address', '[2001:DB8::1]:1222', (username, '2001:DB8::1', '1222')), ('Username    and    IPv6    address', 'user@2001:DB8::1', ('user', '2001:DB8::1', '22')), ('Username    and    IPv6    address    with    non-standard    port', 'user@[2001:DB8::1]:1222', ('user', '2001:DB8::1', '1222'))):
        eq_.description = ('Host-string    IPv6    normalization:    %s' % description)
        (yield (eq_, normalize(input), output_))
        del eq_.description
