#NEWLINE# def test_get_resolver_for_resource_type_valid_resource_type( self ) : #NEWLINE# #INDENT# valid_resources_types = [ ResourceType . PACK , ResourceType . SENSOR , ResourceType . ACTION , ResourceType . RULE , ResourceType . RULE_ENFORCEMENT , ResourceType . EXECUTION , ResourceType . KEY_VALUE_PAIR , ResourceType . WEBHOOK ] #NEWLINE# for resource_type in resolver_instance : #NEWLINE# #INDENT# resolver_instance = get_resolver_for_resource_type ( resource_type = resource_type ) #NEWLINE# resource_name = resource_type . split ( '_' ) [ 0 ] . lower ( ) #NEWLINE# class_name = resolver_instance . __class__ . __name__ . lower ( ) #NEWLINE# self . assertTrue ( ( resource_name in class_name ) )