Module Import alias Import alias ImportFrom alias Import alias Import alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults kwarg body Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Num Num Str NameLoad Call AttributeLoad NameLoad attr Num Num Num Num Num Num Num NameLoad Num Num Num Num Num Dict NameLoad NameLoad Num NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Str body If CompareEq NameLoad Str body Raise Call AttributeLoad NameLoad attr keyword NameLoad orelse If UnaryOpNot CompareEq Call NameLoad NameLoad Str body Raise Call NameLoad BinOpMod Str NameLoad If CompareNotEq NameLoad Str body Raise Call AttributeLoad NameLoad attr Str Return Call NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Dict Str Dict Str Str Str Str Str Str Str Str Str Str Num Num Num Num Call AttributeLoad NameLoad attr Str Num Num NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr keyword TupleLoad Str Str Str Str Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Num If Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr orelse Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Dict Str Str Str Str Str Str Str Str Str Str Num Num Num Num Call AttributeLoad NameLoad attr Str Num Num NameLoad Delete SubscriptDel SubscriptLoad NameLoad Index Str Index NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore IfExp NameLoad NameLoad Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Delete SubscriptDel SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Delete SubscriptDel SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str BinOpMult Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str decorator_list FunctionDef arguments args NameParam defaults body Delete SubscriptDel SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str ListLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str BinOpMult Str BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Delete SubscriptDel SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Delete SubscriptDel SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Delete SubscriptDel SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str Str Str Str Str Str Str Str Str Str Num Num Num Num Num Num Num NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Dict Str Str Str Str Str Str Str Str Str Str Str Num Num Num Num Num Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num Num Num Num Num Num Num NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num Num Num Num Num Num Num NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Num Num Num Num Num Num NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num Num NameLoad Num Num Num Num NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Num NameLoad Num Num Num Num NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Str Dict Str Str Str Str Str Str Str Str Num Num Num Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr keyword TupleLoad Str Str Str Str Str keyword SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr attr Index Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults Str body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Dict Str Str Str BinOpMod Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword ListLoad Str keyword ListLoad Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr keyword TupleLoad Str keyword SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr attr Index Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults Str body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword ListLoad Str keyword ListLoad Str Str Str Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr keyword TupleLoad Str keyword SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr attr Index Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults Str body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Dict Str Dict Str Str Str Str Str Str Str Num Num Num Num Num Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A datetime N/A mock oslo_serialization jsonutils N/A six N/A webob nova.api.openstack.compute flavor_access flavor_access_v21 nova.api.openstack.compute flavor_manage flavormanage_v21 nova.api.openstack.compute.legacy_v2.contrib flavor_access flavor_access_v2 nova.api.openstack.compute.legacy_v2.contrib flavormanage flavormanage_v2 nova.compute flavors nova exception nova test nova.tests.unit.api.openstack fakes fake_db_flavor N/A N/A N/A updates N/A N/A db_flavor N/A root_gb ephemeral_gb name deleted created_at updated_at memory_mb vcpus flavorid swap rxtx_factor extra_specs deleted_at vcpu_weight id is_public disabled 1 1 frob False N/A N/A datetime datetime 2012 1 19 18 49 30 877329 None 256 1 1 0 1.0 N/A None None 7 True False N/A updates N/A N/A N/A N/A db_flavor update updates N/A db_flavor N/A fake_get_flavor_by_flavor_id N/A N/A flavorid ctxt read_deleted N/A None yes N/A N/A N/A flavorid failtest N/A N/A N/A N/A exception FlavorNotFound flavor_id flavorid N/A N/A N/A N/A N/A str flavorid 1234 N/A N/A N/A Exception N/A This test expects flavorid 1234, not %s flavorid N/A N/A read_deleted no N/A N/A N/A N/A test TestingException Should not be reading deleted N/A N/A fake_db_flavor flavorid flavorid N/A fake_destroy N/A N/A flavorname N/A N/A N/A N/A fake_create N/A N/A newflavor N/A N/A N/A N/A newflavor N/A flavorid 1234 N/A N/A newflavor N/A name test N/A N/A newflavor N/A memory_mb 512 N/A N/A newflavor N/A vcpus 2 N/A N/A newflavor N/A root_gb 1 N/A N/A newflavor N/A ephemeral_gb 1 N/A N/A newflavor N/A swap 512 N/A N/A newflavor N/A rxtx_factor 1.0 N/A N/A newflavor N/A is_public True N/A N/A newflavor N/A disabled False N/A FlavorManageTestV21 N/A N/A test NoDBTestCase N/A N/A controller N/A N/A flavormanage_v21 FlavorManageController N/A validation_error N/A exception ValidationError N/A base_url /v2/fake/flavors setUp N/A N/A self N/A N/A N/A N/A N/A N/A super FlavorManageTestV21 self setUp N/A N/A N/A N/A self stubs Set flavors get_flavor_by_flavor_id fake_get_flavor_by_flavor_id N/A N/A N/A N/A self stubs Set flavors destroy fake_destroy N/A N/A N/A self stub_out nova.objects.Flavor.create fake_create N/A N/A self request_body N/A flavor N/A name ram vcpus disk OS-FLV-EXT-DATA:ephemeral id swap rxtx_factor os-flavor-access:is_public test 512 2 1 1 N/A N/A six text_type 1234 512 1 True N/A N/A self expected_flavor N/A self request_body N/A _get_http_request N/A N/A self url N/A N/A N/A N/A N/A N/A fakes HTTPRequest blank url N/A app N/A N/A self N/A N/A N/A N/A N/A fakes wsgi_app_v21 init_only N/A os-flavor-manage os-flavor-rxtx os-flavor-access flavors os-flavor-extra-data N/A property test_delete N/A N/A self N/A N/A N/A res N/A N/A N/A self controller _delete N/A N/A self _get_http_request 1234 N/A N/A isinstance N/A self controller N/A flavormanage_v21 FlavorManageController N/A N/A status_int N/A N/A N/A self controller _delete wsgi_code N/A N/A status_int N/A res status_int N/A N/A N/A self assertEqual 202 status_int N/A N/A N/A self assertRaises N/A N/A webob exc HTTPNotFound N/A N/A self controller _delete N/A N/A self _get_http_request failtest N/A _test_create_missing_parameter N/A N/A self parameter N/A N/A N/A body N/A flavor N/A name ram vcpus disk OS-FLV-EXT-DATA:ephemeral id swap rxtx_factor os-flavor-access:is_public azAZ09. -_ 512 2 1 1 N/A N/A six text_type 1234 512 1 True N/A N/A N/A body N/A flavor N/A parameter N/A N/A N/A self assertRaises N/A self validation_error N/A N/A self controller _create N/A N/A self _get_http_request body body N/A test_create_missing_name N/A N/A self N/A N/A N/A N/A N/A self _test_create_missing_parameter name N/A test_create_missing_ram N/A N/A self N/A N/A N/A N/A N/A self _test_create_missing_parameter ram N/A test_create_missing_vcpus N/A N/A self N/A N/A N/A N/A N/A self _test_create_missing_parameter vcpus N/A test_create_missing_disk N/A N/A self N/A N/A N/A N/A N/A self _test_create_missing_parameter disk N/A _create_flavor_success_case N/A N/A self body req N/A None N/A N/A req N/A req req N/A N/A self _get_http_request url N/A self base_url N/A N/A N/A req headers N/A Content-Type application/json N/A N/A req method POST N/A N/A req body N/A N/A jsonutils dump_as_bytes body N/A res N/A N/A req get_response N/A self app N/A N/A N/A self assertEqual 200 N/A res status_code N/A N/A N/A jsonutils loads N/A res body N/A test_create N/A N/A self N/A N/A N/A body N/A N/A self _create_flavor_success_case N/A self request_body N/A key N/A N/A self expected_flavor N/A flavor N/A N/A N/A N/A self assertEqual N/A N/A body N/A flavor N/A key N/A N/A N/A self expected_flavor N/A flavor N/A key N/A test_create_public_default N/A N/A self N/A N/A N/A N/A N/A N/A self request_body N/A flavor N/A os-flavor-access:is_public N/A body N/A N/A self _create_flavor_success_case N/A self request_body N/A key N/A N/A self expected_flavor N/A flavor N/A N/A N/A N/A self assertEqual N/A N/A body N/A flavor N/A key N/A N/A N/A self expected_flavor N/A flavor N/A key N/A test_create_without_flavorid N/A N/A self N/A N/A N/A N/A N/A N/A self request_body N/A flavor N/A id N/A body N/A N/A self _create_flavor_success_case N/A self request_body N/A key N/A N/A self expected_flavor N/A flavor N/A N/A N/A N/A self assertEqual N/A N/A body N/A flavor N/A key N/A N/A N/A self expected_flavor N/A flavor N/A key N/A _create_flavor_bad_request_case N/A N/A self body N/A N/A N/A N/A N/A N/A self stubs UnsetAll N/A N/A N/A self assertRaises N/A self validation_error N/A N/A self controller _create N/A N/A self _get_http_request body body N/A test_create_invalid_name N/A N/A self N/A N/A N/A N/A N/A N/A self request_body N/A flavor N/A name bad !@#!$% name N/A N/A N/A self _create_flavor_bad_request_case N/A self request_body N/A test_create_flavor_name_is_whitespace N/A N/A self N/A N/A N/A N/A N/A N/A self request_body N/A flavor N/A name N/A N/A N/A self _create_flavor_bad_request_case N/A self request_body N/A test_create_with_name_too_long N/A N/A self N/A N/A N/A N/A N/A N/A self request_body N/A flavor N/A name N/A a 256 N/A N/A N/A self _create_flavor_bad_request_case N/A self request_body N/A test_create_with_name_leading_trailing_spaces N/A N/A self N/A N/A N/A N/A N/A N/A self request_body N/A flavor N/A name   test   N/A N/A N/A self _create_flavor_bad_request_case N/A self request_body N/A test_create_with_name_leading_trailing_spaces_compat_mode N/A N/A self N/A N/A N/A req N/A N/A self _get_http_request url N/A self base_url N/A N/A N/A req set_legacy_v2 N/A N/A N/A N/A self request_body N/A flavor N/A name   test   N/A body N/A N/A self _create_flavor_success_case N/A self request_body req N/A N/A N/A self assertEqual test N/A N/A body N/A flavor N/A name N/A test_create_without_flavorname N/A N/A self N/A N/A N/A N/A N/A N/A self request_body N/A flavor N/A name N/A N/A N/A self _create_flavor_bad_request_case N/A self request_body N/A test_create_empty_body N/A N/A self N/A N/A N/A body N/A flavor N/A N/A N/A N/A self _create_flavor_bad_request_case body N/A test_create_no_body N/A N/A self N/A N/A N/A body N/A N/A N/A N/A self _create_flavor_bad_request_case body N/A test_create_invalid_format_body N/A N/A self N/A N/A N/A body N/A flavor N/A N/A N/A N/A self _create_flavor_bad_request_case body N/A test_create_invalid_flavorid N/A N/A self N/A N/A N/A N/A N/A N/A self request_body N/A flavor N/A id !@#!$#!$^#&^$& N/A N/A N/A self _create_flavor_bad_request_case N/A self request_body N/A test_create_check_flavor_id_length N/A N/A self N/A N/A N/A MAX_LENGTH 255 N/A N/A N/A N/A self request_body N/A flavor N/A id N/A a N/A MAX_LENGTH 1 N/A N/A N/A self _create_flavor_bad_request_case N/A self request_body N/A test_create_with_leading_trailing_whitespaces_in_flavor_id N/A N/A self N/A N/A N/A N/A N/A N/A self request_body N/A flavor N/A id    bad_id    N/A N/A N/A self _create_flavor_bad_request_case N/A self request_body N/A test_create_without_ram N/A N/A self N/A N/A N/A N/A N/A N/A self request_body N/A flavor N/A ram N/A N/A N/A self _create_flavor_bad_request_case N/A self request_body N/A test_create_with_0_ram N/A N/A self N/A N/A N/A N/A N/A N/A self request_body N/A flavor N/A ram 0 N/A N/A N/A self _create_flavor_bad_request_case N/A self request_body N/A test_create_without_vcpus N/A N/A self N/A N/A N/A N/A N/A N/A self request_body N/A flavor N/A vcpus N/A N/A N/A self _create_flavor_bad_request_case N/A self request_body N/A test_create_with_0_vcpus N/A N/A self N/A N/A N/A N/A N/A N/A self request_body N/A flavor N/A vcpus 0 N/A N/A N/A self _create_flavor_bad_request_case N/A self request_body N/A test_create_without_disk N/A N/A self N/A N/A N/A N/A N/A N/A self request_body N/A flavor N/A disk N/A N/A N/A self _create_flavor_bad_request_case N/A self request_body N/A test_create_with_minus_disk N/A N/A self N/A N/A N/A N/A N/A N/A self request_body N/A flavor N/A disk -1 N/A N/A N/A self _create_flavor_bad_request_case N/A self request_body N/A test_create_with_minus_ephemeral N/A N/A self N/A N/A N/A N/A N/A N/A self request_body N/A flavor N/A OS-FLV-EXT-DATA:ephemeral -1 N/A N/A N/A self _create_flavor_bad_request_case N/A self request_body N/A test_create_with_minus_swap N/A N/A self N/A N/A N/A N/A N/A N/A self request_body N/A flavor N/A swap -1 N/A N/A N/A self _create_flavor_bad_request_case N/A self request_body N/A test_create_with_minus_rxtx_factor N/A N/A self N/A N/A N/A N/A N/A N/A self request_body N/A flavor N/A rxtx_factor -1 N/A N/A N/A self _create_flavor_bad_request_case N/A self request_body N/A test_create_with_non_boolean_is_public N/A N/A self N/A N/A N/A N/A N/A N/A self request_body N/A flavor N/A os-flavor-access:is_public 123 N/A N/A N/A self _create_flavor_bad_request_case N/A self request_body N/A test_flavor_exists_exception_returns_409 N/A N/A self N/A N/A N/A expected N/A flavor N/A name ram vcpus disk OS-FLV-EXT-DATA:ephemeral id swap rxtx_factor os-flavor-access:is_public test 512 2 1 1 1235 512 1 True fake_create N/A N/A name memory_mb vcpus root_gb ephemeral_gb flavorid swap rxtx_factor is_public N/A N/A N/A N/A N/A exception FlavorExists name name N/A N/A N/A N/A N/A self stubs Set flavors create fake_create N/A N/A N/A self assertRaises N/A N/A webob exc HTTPConflict N/A N/A self controller _create N/A N/A self _get_http_request body expected N/A test_flavor_create_db_failed N/A N/A self mock_create N/A N/A N/A request_dict N/A flavor N/A name id ram vcpus disk OS-FLV-EXT-DATA:ephemeral swap rxtx_factor os-flavor-access:is_public test 12345 512 2 1 1 512 1 True N/A ex N/A N/A self assertRaises N/A N/A webob exc HTTPInternalServerError N/A N/A self controller _create N/A N/A self _get_http_request body request_dict N/A N/A N/A self assertIn Unable to create flavor N/A ex explanation N/A N/A N/A mock patch nova.compute.flavors.create side_effect N/A exception FlavorCreateFailed test_invalid_memory_mb N/A N/A self N/A N/A N/A Check negative and decimal number can't be accepted. N/A N/A N/A N/A self stubs UnsetAll N/A N/A N/A self assertRaises N/A exception InvalidInput N/A flavors create abc -512 2 1 1 1234 512 1 True N/A N/A N/A self assertRaises N/A exception InvalidInput N/A flavors create abcd 512.2 2 1 1 1234 512 1 True N/A N/A N/A self assertRaises N/A exception InvalidInput N/A flavors create abcde None 2 1 1 1234 512 1 True N/A N/A N/A self assertRaises N/A exception InvalidInput N/A flavors create abcdef 512 2 None 1 1234 512 1 True N/A N/A N/A self assertRaises N/A exception InvalidInput N/A flavors create abcdef test_memory_mb 2 None 1 1234 512 1 True N/A N/A PrivateFlavorManageTestV21 N/A N/A test TestCase N/A N/A controller N/A N/A flavormanage_v21 FlavorManageController N/A base_url /v2/fake/flavors setUp N/A N/A self N/A N/A N/A N/A N/A N/A super PrivateFlavorManageTestV21 self setUp N/A N/A self flavor_access_controller N/A N/A flavor_access_v21 FlavorAccessController N/A N/A self expected N/A flavor N/A name ram vcpus disk OS-FLV-EXT-DATA:ephemeral swap rxtx_factor test 512 2 1 1 512 1 N/A app N/A N/A self N/A N/A N/A N/A N/A fakes wsgi_app_v21 init_only N/A os-flavor-manage os-flavor-access os-flavor-rxtx flavors os-flavor-extra-data fake_auth_context N/A N/A N/A N/A self _get_http_request environ N/A nova.context N/A property _get_http_request N/A N/A self url N/A N/A N/A N/A N/A N/A fakes HTTPRequest blank url N/A _get_response N/A N/A self N/A N/A N/A req N/A N/A self _get_http_request N/A self base_url N/A N/A N/A req headers N/A Content-Type application/json N/A N/A req method POST N/A N/A req body N/A N/A jsonutils dump_as_bytes N/A self expected N/A res N/A N/A req get_response N/A self app N/A N/A N/A jsonutils loads N/A res body N/A test_create_private_flavor_should_not_grant_flavor_access N/A N/A self N/A N/A N/A N/A N/A N/A self expected N/A flavor N/A os-flavor-access:is_public False N/A body N/A N/A self _get_response N/A key N/A N/A self expected N/A flavor N/A N/A N/A N/A self assertEqual N/A N/A body N/A flavor N/A key N/A N/A N/A self expected N/A flavor N/A key N/A flavor_access_body N/A N/A N/A self flavor_access_controller index N/A N/A N/A fakes HTTPRequest blank use_admin_context True N/A N/A body N/A flavor N/A id N/A expected_flavor_access_body N/A tenant_id flavor_id fake N/A %s N/A N/A body N/A flavor N/A id N/A N/A N/A self assertNotIn expected_flavor_access_body N/A flavor_access_body N/A flavor_access N/A test_create_public_flavor_should_not_create_flavor_access N/A N/A self N/A N/A N/A N/A N/A N/A self expected N/A flavor N/A os-flavor-access:is_public True N/A body N/A N/A self _get_response N/A key N/A N/A self expected N/A flavor N/A N/A N/A N/A self assertEqual N/A N/A body N/A flavor N/A key N/A N/A N/A self expected N/A flavor N/A key N/A N/A FlavorManageTestV2 N/A FlavorManageTestV21 N/A N/A controller N/A N/A flavormanage_v2 FlavorManageController N/A validation_error N/A N/A webob exc HTTPBadRequest setUp N/A N/A self N/A N/A N/A N/A N/A N/A super FlavorManageTestV2 self setUp N/A N/A N/A self flags osapi_compute_extension N/A nova.api.openstack.compute.contrib.select_extensions osapi_compute_ext_list N/A Flavormanage Flavorextradata Flavor_access Flavor_rxtx Flavor_swap N/A app N/A N/A self N/A N/A N/A N/A N/A fakes wsgi_app init_only N/A flavors fake_auth_context N/A N/A N/A N/A self _get_http_request environ N/A nova.context N/A property _get_http_request N/A N/A self url N/A N/A N/A N/A N/A N/A fakes HTTPRequest blank url use_admin_context False N/A test_create_with_name_leading_trailing_spaces N/A N/A self N/A N/A N/A req N/A N/A self _get_http_request url N/A self base_url N/A N/A N/A N/A self request_body N/A flavor N/A name   test   N/A body N/A N/A self _create_flavor_success_case N/A self request_body req N/A N/A N/A self assertEqual test N/A N/A body N/A flavor N/A name N/A test_create_with_name_leading_trailing_spaces_compat_mode N/A N/A self N/A N/A N/A N/A N/A PrivateFlavorManageTestV2 N/A PrivateFlavorManageTestV21 N/A N/A controller N/A N/A flavormanage_v2 FlavorManageController setUp N/A N/A self N/A N/A N/A N/A N/A N/A super PrivateFlavorManageTestV2 self setUp N/A N/A N/A self flags osapi_compute_extension N/A nova.api.openstack.compute.contrib.select_extensions osapi_compute_ext_list N/A Flavormanage Flavorextradata Flavor_access Flavor_rxtx Flavor_swap N/A N/A self flavor_access_controller N/A N/A flavor_access_v2 FlavorAccessController N/A app N/A N/A self N/A N/A N/A N/A N/A fakes wsgi_app init_only N/A flavors fake_auth_context N/A N/A N/A N/A self _get_http_request environ N/A nova.context N/A property _get_http_request N/A N/A self url N/A N/A N/A N/A N/A N/A fakes HTTPRequest blank url use_admin_context False N/A N/A FlavorManagerPolicyEnforcementV21 N/A N/A test NoDBTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super FlavorManagerPolicyEnforcementV21 self setUp N/A N/A self controller N/A N/A flavormanage_v21 FlavorManageController N/A test_create_policy_failed N/A N/A self N/A N/A N/A rule_name os_compute_api:os-flavor-manage N/A N/A N/A N/A self policy set_rules N/A rule_name project:non_fake N/A req N/A N/A N/A fakes HTTPRequest blank N/A exc N/A N/A self assertRaises N/A exception PolicyNotAuthorized N/A N/A self controller _create req body N/A flavor N/A name ram vcpus disk swap rxtx_factor test 512 2 1 512 1 N/A N/A N/A self assertEqual N/A Policy doesn't allow %s to be performed. rule_name N/A N/A exc format_message N/A test_delete_policy_failed N/A N/A self N/A N/A N/A rule_name os_compute_api:os-flavor-manage N/A N/A N/A N/A self policy set_rules N/A rule_name project:non_fake N/A req N/A N/A N/A fakes HTTPRequest blank N/A exc N/A N/A self assertRaises N/A exception PolicyNotAuthorized N/A N/A self controller _delete req N/A fakes FAKE_UUID N/A N/A N/A self assertEqual N/A Policy doesn't allow %s to be performed. rule_name N/A N/A exc format_message N/A N/A