'L{getDeprecationWarningString} takes an additional replacement parameter
that can be used to add information to the deprecation.  If the
replacement parameter is a string, it will be interpolated directly into
the result.'

def test_getDeprecationWarningStringReplacement(self):

    version = Version('Twisted', 8, 0, 0)
    warningString = getDeprecationWarningString(self.test_getDeprecationWarningString, version, replacement='something.foobar')
    self.assertEqual(warningString, ('%s    was    deprecated    in    Twisted    8.0.0;    please    use    something.foobar    instead' % (fullyQualifiedName(self.test_getDeprecationWarningString),)))
