#NEWLINE# def test_mode( **kwargs ) : #NEWLINE# #INDENT# '\n    Examines the kwargs passed and returns True if any kwarg which matching\n    "Test" in any variation on capitalization (i.e. "TEST", "Test", "TeSt",\n    etc) contains a True value (as determined by salt.utils.is_true).\n    ' #NEWLINE# for ( arg , value ) in six . iteritems ( kwargs ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if ( ( arg . lower ( ) == 'test' ) and is_true ( kwargs ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# #UNINDENT# return False