def test_remoteAddrIPv6(self):
        """
        The C{'REMOTE_ADDR'} key of the C{environ} C{dict} passed to
        the application contains the address of the client making the
        request when connecting over IPv6.
        """
        def channelFactory():
            return DummyChannel(peer=IPv6Address('TCP', '::1', 1234))
        d = self.render('GET', '1.1', [], [''], channelFactory=channelFactory)
        d.addCallback(self.environKeyEqual('REMOTE_ADDR', '::1'))

        return d

        The C{'REMOTE_ADDR'} key of the C{environ} C{dict} passed to
        the application contains the address of the client making the
        request when connecting over IPv6.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_wsgi.py