'When a connection is accepted to an IPv6 address, an L{IPv6Address} is
passed to the factory\'s C{buildProtocol} method giving the peer\'s
address.'

def test_buildProtocolIPv6Address(self):

    interface = '::1'
    client = createTestSocket(self, socket.AF_INET6, socket.SOCK_STREAM)
    observedAddress = self._buildProtocolAddressTest(client, interface)
    self.assertEqual(IPv6Address('TCP', *client.getsockname()[:2]), observedAddress)
