#NEWLINE# def _validate_category( self , category ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if ( category . type_id != self . parsed_obj [ 'category' ] ) : #NEWLINE# #INDENT# raise exception . OCCISchemaMismatch ( expected = category . type_id , found = category . parsed_obj [ 'category' ] ) #NEWLINE# #UNINDENT# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise exception . OCCIMissingType ( type_id = category . type_id )