def test_getHostIPv6(self):
        """
        L{IListeningPort.getHost} returns an L{IPv6Address} when listening on
        an IPv6 interface.
        """
        reactor = self.buildReactor()
        port = self.getListeningPort(
            reactor, DatagramProtocol(), interface='::1')
        addr = port.getHost()
        self.assertEqual(addr.host, "::1")
        self.assertIsInstance(addr, IPv6Address)

        L{IListeningPort.getHost} returns an L{IPv6Address} when listening on
        an IPv6 interface.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/test/test_udp.py