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

def test_buildProtocolIPv6AddressScopeID(self):

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