#NEWLINE# def test_deprecationGetProgramFilesPath( self ) : #NEWLINE# #INDENT# '\n        L{getProgramFilesPath} has been deprecated.\n        ' #NEWLINE# win32 . getProgramFilesPath ( ) #NEWLINE# emittedWarnings = self . flushWarnings ( [ self . test_deprecationGetProgramFilesPath ] ) #NEWLINE# self . assertEqual ( len ( emittedWarnings ) , 1 ) #NEWLINE# self . assertIs ( emittedWarnings [ 0 ] [ 'category' ] , DeprecationWarning ) #NEWLINE# self . assertEqual ( emittedWarnings [ 0 ] [ 'message' ] , 'twisted.python.win32.getProgramFilesPath was deprecated in Twisted 15.3.0' )