'When a link-local IPv6 address including a scope identifier is passed as
the C{interface} argument to L{IReactorTCP.listenTCP}, the resulting
L{IListeningPort} reports its address as an L{IPv6Address} with a host
value that includes the scope identifier.'

def test_portGetHostOnIPv6ScopeID(self):

    linkLocal = getLinkLocalIPv6Address()
    reactor = self.buildReactor()
    port = self.getListeningPort(reactor, ServerFactory(), 0, linkLocal)
    address = port.getHost()
    self.assertIsInstance(address, IPv6Address)
    self.assertEqual(linkLocal, address.host)
