#NEWLINE# def test_getDeprecationWarningStringWithFormat( self ) : #NEWLINE# #INDENT# '\n        L{getDeprecationWarningString} returns a string that tells us that a\n        callable was deprecated at a certain released version of Twisted, with\n        a message containing additional information about the deprecation.\n        ' #NEWLINE# version = Version ( 'Twisted' , 8 , 0 , 0 ) #NEWLINE# format = ( deprecate . DEPRECATION_WARNING_FORMAT + ': This is a message' ) #NEWLINE# self . assertEqual ( getDeprecationWarningString ( self . test_getDeprecationWarningString , version , format ) , 'twisted.python.test.test_deprecate.TestDeprecationWarnings.test_getDeprecationWarningString was deprecated in Twisted 8.0.0: This is a message' )