def test_callDeprecationWithWrongMessage(self):
        """
        If the message passed to L{callDeprecated} doesn't match,
        L{callDeprecated} raises a test failure.
        """
        exception = self.assertRaises(
            self.failureException,
            self.callDeprecated,
            (self.version, "something.wrong"),
            oldMethodReplaced, 1)
        self.assertIn(getVersionString(self.version), str(exception))
        self.assertIn("please use newMethod instead", str(exception))

        If the message passed to L{callDeprecated} doesn't match,
        L{callDeprecated} raises a test failure.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_assertions.py