def test_getClientIPWithIPv6(self):
        """
        L{http.Request.getClientIP} returns the host part of the
        client's address when connected over IPv6.
        """
        request = http.Request(
            DummyChannel(peer=address.IPv6Address("TCP", "::1", 12344)))
        self.assertEqual(request.getClientIP(), "::1")

        L{http.Request.getClientIP} returns the host part of the
        client's address when connected over IPv6.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_http.py