def test_getClientIPDeprecated(self):
        """
        L{DummyRequest.getClientIP} is deprecated in favor of
        L{DummyRequest.getClientAddress}
        """

        request = DummyRequest([])
        request.getClientIP()

        warnings = self.flushWarnings(
            offendingFunctions=[self.test_getClientIPDeprecated])

        self.assertEqual(1, len(warnings))
        [warning] = warnings
        self.assertEqual(warning.get("category"), DeprecationWarning)
        self.assertEqual(
            warning.get("message"),
            ("twisted.web.test.requesthelper.DummyRequest.getClientIP "
             "was deprecated in Twisted 18.4.0; "
             "please use getClientAddress instead"),
        )

        L{DummyRequest.getClientIP} is deprecated in favor of
        L{DummyRequest.getClientAddress}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/requesthelper.py