def test_getClientIPWithNonTCPPeer(self):
        """
        L{http.Request.getClientIP} returns L{None} for the client's
        IP address when connected over a non-TCP transport.
        """
        request = http.Request(
            DummyChannel(peer=address.UNIXAddress("/path/to/socket")))
        self.assertEqual(request.getClientIP(), None)

        L{http.Request.getClientIP} returns L{None} for the client's
        IP address when connected over a non-TCP transport.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_http.py