'L{getDeprecationWarningString} takes an additional replacement parameter
that can be used to add information to the deprecation. If the
replacement parameter is a callable, its fully qualified name will be
interpolated into the result.'

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    %s.dummyReplacementMethod    instead' % (fullyQualifiedName(self.test_getDeprecationWarningString), __name__)))
