#NEWLINE# def validate( self , force = False ) : #NEWLINE# #INDENT# '\n        Validate result\n        Skip if it was already validated to avoid\n        unwanted re-validation\n        ' #NEWLINE# if ( ( force != True ) and ( self . validated == True ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . _validate_status ( self . result [ 'status' ] ) #NEWLINE# self . _validate_msg ( self . result [ 'messages' ] ) #NEWLINE# self . _validate_component_result ( self . result [ 'componentResults' ] ) #NEWLINE# self . _validate_action ( self . result [ 'action' ] ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# self . validated = True