#NEWLINE# def test_getDeprecationWarningStringReplacementWithCallable( self ) : #NEWLINE# #INDENT# '\n        L{getDeprecationWarningString} takes an additional replacement parameter\n        that can be used to add information to the deprecation. If the\n        replacement parameter is a callable, its fully qualified name will be\n        interpolated into the result.\n        ' #NEWLINE# version = Version ( 'Twisted' , 8 , 0 , 0 ) #NEWLINE# warningString = getDeprecationWarningString ( warningString . test_getDeprecationWarningString , version , replacement = dummyReplacementMethod ) #NEWLINE# self . assertEqual ( warningString , ( '%s was deprecated in Twisted 8.0.0; please use twisted.python.test.test_deprecate.dummyReplacementMethod instead' % ( fullyQualifiedName ( self . test_getDeprecationWarningString ) , ) ) )