def test_getDeprecationWarningStringReplacementWithCallable(self):
        version = Version('Twisted', 8, 0, 0)
        warningString = getDeprecationWarningString(
            self.test_getDeprecationWarningString, version,
            replacement=dummyReplacementMethod)
        self.assertEqual(
            warningString,
            "%s was deprecated in Twisted 8.0.0; please use "
            "twisted.python.test.test_deprecate.dummyReplacementMethod "
            "instead" % (
                fullyQualifiedName(self.test_getDeprecationWarningString),))
Usage:
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/test/test_deprecate.py/TestDeprecationWarnings.test_getDeprecationWarningStringReplacementWithCallable--crossover with--dataset/ETHPy150Open evennia/evennia/evennia/locks/lockfuncs.py/attr_gt