#NEWLINE# def _validate_component_result( self , result ) : #NEWLINE# #INDENT# '\n        Validate componentResults\n        ' #NEWLINE# if ( result == None ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if ( not isinstance ( result , dict ) ) : #NEWLINE# #INDENT# raise ValidationError ( 'Component result must be dictionary' ) #NEWLINE# #UNINDENT# for ( name , component ) in result . iteritems ( ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . _validate_msg ( component [ 'messages' ] ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise ValidationError ( ( "Component %s doesn't have message" % name ) ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . _validate_status ( component [ 'status' ] ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise ValidationError ( ( "Component %s doesn't have status" % name ) )