def test_resolveIPv6(self):
        """
        L{_resolveIPv6} discovers the flow info and scope ID of an IPv6
        address.
        """
        result = _resolveIPv6("::1", 2)
        self.assertEqual(len(result), 4)
        # We can't say anything more useful about these than that they're
        # integers, because the whole point of getaddrinfo is that you can never
        # know a-priori know _anything_ about the network interfaces of the
        # computer that you're on and you have to ask it.
        self.assertIsInstance(result[2], (int, long)) # flow info
        self.assertIsInstance(result[3], (int, long)) # scope id
        # but, luckily, IP presentation format and what it means to be a port
        # number are a little better specified.
        self.assertEqual(result[:2], ("::1", 2))

        L{_resolveIPv6} discovers the flow info and scope ID of an IPv6
        address.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/test/test_tcp.py