Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad keyword NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad GeneratorExp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Str decorator_list decorator_list
N/A N/A mock neutron manager neutron.objects.qos rule_type neutron.services.qos qos_consts neutron.tests base test_base N/A DB_PLUGIN_KLASS neutron.db.db_base_plugin_v2.NeutronDbPluginV2 QosRuleTypeObjectTestCase N/A N/A test_base BaseTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A self config_parse N/A N/A N/A self setup_coreplugin DB_PLUGIN_KLASS N/A N/A N/A N/A super QosRuleTypeObjectTestCase self setUp N/A test_get_objects N/A N/A self N/A N/A N/A core_plugin N/A N/A N/A manager NeutronManager get_plugin N/A rule_types_mock N/A N/A mock PropertyMock return_value N/A qos_consts VALID_RULE_TYPES N/A N/A N/A N/A mock patch object core_plugin supported_qos_rule_types new_callable rule_types_mock create True N/A N/A types N/A N/A N/A rule_type QosRuleType get_objects N/A N/A N/A self assertEqual N/A sorted N/A qos_consts VALID_RULE_TYPES N/A sorted N/A N/A type_ N/A type N/A type_ types N/A test_wrong_type N/A N/A self N/A N/A N/A N/A N/A self assertRaises ValueError N/A rule_type QosRuleType type bad_type N/A N/A