'When a connection is accepted over IPv6, the server
L{ITransport.getPeer} method returns an L{IPv6Address} giving the
address on the remote end of the connection.'

def test_serverGetPeerOnIPv6(self):

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