#NEWLINE# def test_isWinNTDeprecated( self ) : #NEWLINE# #INDENT# '\n        L{Platform.isWinNT} is deprecated in favor of L{platform.isWindows}.\n        ' #NEWLINE# platform = Platform ( ) #NEWLINE# platform . isWinNT ( ) #NEWLINE# warnings = self . flushWarnings ( [ self . test_isWinNTDeprecated ] ) #NEWLINE# self . assertEqual ( len ( warnings ) , 1 ) #NEWLINE# self . assertEqual ( warnings [ 0 ] [ 'message' ] , platform . isWinNTDeprecationMessage )