#NEWLINE# def test_validate_json_schema( self ) : #NEWLINE# #INDENT# object_data = { #NEWLINE# #INDENT# 'action_group' : 'test_group' , #NEWLINE# 'action_name' : 'test_action_one' , #NEWLINE# 'action_type' : 'http_request' , #NEWLINE# 'additional_info' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# 'is_sent' : False , #NEWLINE# 'cluster_id' : 1 , #NEWLINE# #UNINDENT# } #NEWLINE# al = self . _create_log_entry ( al ) #NEWLINE# instance_to_validate = jsonutils . loads ( objects . ActionLog . to_json ( al ) ) #NEWLINE# self . assertNotRaises ( jsonschema . ValidationError , jsonschema . validate , instance_to_validate , action_log . schema )