Module Import alias ImportFrom alias Import alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return ListLoad Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad keyword SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot BoolOpAnd NameLoad NameLoad body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword TupleLoad Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr keyword ListLoad Str keyword ListLoad Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Dict Str ListLoad Dict Str Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr CompareGt Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Num Expr Call AttributeLoad NameLoad attr CompareGt Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Num Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str BinOpMult Str Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr CompareGt Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Num Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Return Num decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Assign NameStore Dict Str Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Return Num decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Assign NameStore Dict Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Dict Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults body Raise Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults body Raise Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword ListLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword Num Call AttributeLoad NameLoad attr keyword NameLoad keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Dict Str Dict Str Str Str Str Str Num Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad Call AttributeLoad NameLoad attr keyword ListLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword Num NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Dict Str Dict Str Str Str Str Str Num Str NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str 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 FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict BinOpAdd AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict BinOpAdd AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict BinOpAdd AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict BinOpAdd AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str Str Assign NameStore Dict BinOpAdd AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Str Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str Assign AttributeStore NameLoad attr TupleLoad NameLoad Str Assign NameStore Dict Str Dict Str Str Assign NameStore Dict BinOpAdd AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Dict BinOpAdd AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict BinOpAdd AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword TupleLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword 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 FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad Call AttributeLoad NameLoad attr keyword ListLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword Num NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Dict Str Dict Str Str Str Str Str Num Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Dict Str ListLoad Dict Str Call NameLoad NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Index Num Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Index Num Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Index Num Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Dict Str Dict Str Str Str Str With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str keyword TupleLoad Call AttributeLoad NameLoad attr Num NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Index Num Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Dict Str Dict Str Str Str Str Str Str With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Index Num Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign NameStore Dict Str Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Str Str decorator_list decorator_list
N/A N/A mock oslo_serialization jsonutils N/A webob oslo_policy policy oslo_policy nova.api.openstack.compute keypairs keypairs_v21 nova.api.openstack.compute.legacy_v2.contrib keypairs keypairs_v2 nova.api.openstack wsgi os_wsgi nova.compute api compute_api nova exception nova objects nova policy nova quota nova test nova.tests.unit.api.openstack fakes nova.tests.unit.objects test_keypair nova.tests uuidsentinel uuids N/A QUOTAS N/A quota QUOTAS N/A keypair_data N/A public_key fingerprint FAKE_KEY FAKE_FINGERPRINT N/A FAKE_UUID b48316c5-71e8-45e4-9884-6c78055b9b13 fake_keypair N/A N/A name N/A N/A N/A N/A dict N/A test_keypair fake_keypair name name keypair_data N/A db_key_pair_get_all_by_user N/A N/A self user_id N/A N/A N/A N/A N/A fake_keypair FAKE N/A db_key_pair_create N/A N/A self keypair N/A N/A N/A N/A fake_keypair name N/A keypair N/A name N/A db_key_pair_destroy N/A N/A context user_id name N/A N/A N/A N/A N/A user_id name N/A N/A N/A Exception N/A db_key_pair_create_duplicate N/A N/A context keypair N/A N/A N/A N/A N/A exception KeyPairExists key_name N/A N/A keypair get name N/A KeypairsTestV21 N/A N/A test TestCase N/A N/A base_url /v2/fake N/A validation_error N/A exception ValidationError N/A wsgi_api_version N/A os_wsgi DEFAULT_API_VERSION _setup_app_and_controller N/A N/A self N/A N/A N/A N/A self app_server N/A N/A fakes wsgi_app_v21 init_only N/A os-keypairs servers N/A N/A self controller N/A N/A keypairs_v21 KeypairController N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super KeypairsTestV21 self setUp N/A N/A N/A fakes stub_out_networking self N/A N/A N/A fakes stub_out_rate_limiting N/A self stubs N/A N/A N/A self stub_out nova.db.key_pair_get_all_by_user db_key_pair_get_all_by_user N/A N/A N/A self stub_out nova.db.key_pair_create db_key_pair_create N/A N/A N/A self stub_out nova.db.key_pair_destroy db_key_pair_destroy 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 Keypairs N/A N/A N/A self _setup_app_and_controller N/A N/A self req N/A N/A N/A fakes HTTPRequest blank version N/A self wsgi_api_version N/A test_keypair_list N/A N/A self N/A N/A N/A res_dict N/A N/A N/A self controller index N/A self req N/A response N/A keypairs N/A N/A keypair N/A dict keypair_data name FAKE N/A N/A N/A self assertEqual res_dict response N/A test_keypair_create N/A N/A self N/A N/A N/A body N/A keypair N/A name create_test N/A res_dict N/A N/A N/A self controller create N/A self req body body N/A N/A N/A self assertTrue N/A N/A len N/A N/A res_dict N/A keypair N/A fingerprint 0 N/A N/A N/A self assertTrue N/A N/A len N/A N/A res_dict N/A keypair N/A private_key 0 N/A N/A N/A self _assert_keypair_type res_dict N/A _test_keypair_create_bad_request_case N/A N/A self body exception N/A N/A N/A N/A N/A self assertRaises exception N/A N/A self controller create N/A self req body body N/A test_keypair_create_with_empty_name N/A N/A self N/A N/A N/A body N/A keypair N/A name N/A N/A N/A self _test_keypair_create_bad_request_case body N/A self validation_error N/A test_keypair_create_with_name_too_long N/A N/A self N/A N/A N/A body N/A keypair N/A name N/A a 256 N/A N/A N/A self _test_keypair_create_bad_request_case body N/A self validation_error N/A test_keypair_create_with_name_leading_trailing_spaces N/A N/A self N/A N/A N/A body N/A keypair N/A name   test   N/A N/A N/A self _test_keypair_create_bad_request_case body N/A self validation_error N/A test_keypair_create_with_name_leading_trailing_spaces_compat_mode N/A N/A self N/A N/A N/A body N/A keypair N/A name   test   N/A N/A N/A N/A self req set_legacy_v2 N/A res_dict N/A N/A N/A self controller create N/A self req body body N/A N/A N/A self assertEqual test N/A N/A res_dict N/A keypair N/A name N/A test_keypair_create_with_non_alphanumeric_name N/A N/A self N/A N/A N/A body N/A keypair N/A name test/keypair N/A N/A N/A self _test_keypair_create_bad_request_case body N/A N/A webob exc HTTPBadRequest N/A test_keypair_import_bad_key N/A N/A self N/A N/A N/A body N/A keypair N/A name public_key create_test ssh-what negative N/A N/A N/A self _test_keypair_create_bad_request_case body N/A N/A webob exc HTTPBadRequest N/A test_keypair_create_with_invalid_keypair_body N/A N/A self N/A N/A N/A body N/A alpha N/A name create_test N/A N/A N/A self _test_keypair_create_bad_request_case body N/A self validation_error N/A test_keypair_import N/A N/A self N/A N/A N/A body N/A keypair N/A name public_key create_test ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBYIznAx9D7118Q1VKGpXy2HDiKyUTM8XcUuhQpo0srqb9rboUp4a9NmCwpWpeElDLuva707GOUnfaBAvHBwsRXyxHJjRaI6YQj2oLJwqvaSaWUbyT1vtryRqy6J3TecN0WINY71f4uymiMZP0wby4bKBcYnac8KiCIlvkEl0ETjkOGUq8OyWRmn7ljj5SESEUdBP0JnuTFKddWTU/wD6wydeJaUhBTqOlHn0kX1GyqoNTE1UEhcM5ZRWgfUZfTjVyDF2kGj3vJLCJtJ8LoGcj7YaN4uPg1rBle+izwE/tLonRrds+cev8p6krSSrxWOwBbHkXa6OciiJDvkRzJXzf N/A res_dict N/A N/A N/A self controller create N/A self req body body N/A N/A N/A self assertTrue N/A N/A len N/A N/A res_dict N/A keypair N/A fingerprint 0 N/A N/A N/A self assertNotIn private_key N/A res_dict N/A keypair N/A N/A N/A self _assert_keypair_type res_dict N/A test_keypair_import_quota_limit N/A N/A self N/A N/A fake_quotas_count N/A N/A self context resource N/A args kwargs N/A N/A 100 N/A N/A N/A N/A N/A self stubs Set QUOTAS count fake_quotas_count N/A body N/A keypair N/A name public_key create_test ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBYIznAx9D7118Q1VKGpXy2HDiKyUTM8XcUuhQpo0srqb9rboUp4a9NmCwpWpeElDLuva707GOUnfaBAvHBwsRXyxHJjRaI6YQj2oLJwqvaSaWUbyT1vtryRqy6J3TecN0WINY71f4uymiMZP0wby4bKBcYnac8KiCIlvkEl0ETjkOGUq8OyWRmn7ljj5SESEUdBP0JnuTFKddWTU/wD6wydeJaUhBTqOlHn0kX1GyqoNTE1UEhcM5ZRWgfUZfTjVyDF2kGj3vJLCJtJ8LoGcj7YaN4uPg1rBle+izwE/tLonRrds+cev8p6krSSrxWOwBbHkXa6OciiJDvkRzJXzf N/A ex N/A N/A self assertRaises N/A N/A webob exc HTTPForbidden N/A N/A self controller create N/A self req body body N/A N/A N/A self assertIn Quota exceeded, too many key pairs. N/A ex explanation N/A test_keypair_create_quota_limit N/A N/A self N/A N/A fake_quotas_count N/A N/A self context resource N/A args kwargs N/A N/A 100 N/A N/A N/A N/A N/A self stubs Set QUOTAS count fake_quotas_count N/A body N/A keypair N/A name create_test N/A ex N/A N/A self assertRaises N/A N/A webob exc HTTPForbidden N/A N/A self controller create N/A self req body body N/A N/A N/A self assertIn Quota exceeded, too many key pairs. N/A ex explanation N/A test_keypair_create_duplicate N/A N/A self N/A N/A N/A N/A N/A self stub_out nova.db.key_pair_create db_key_pair_create_duplicate N/A body N/A keypair N/A name create_duplicate N/A ex N/A N/A self assertRaises N/A N/A webob exc HTTPConflict N/A N/A self controller create N/A self req body body N/A N/A N/A self assertIn Key pair 'create_duplicate' already exists. N/A ex explanation N/A test_keypair_delete N/A N/A self N/A N/A N/A N/A N/A N/A self controller delete N/A self req FAKE N/A test_keypair_get_keypair_not_found N/A N/A self N/A N/A N/A N/A N/A self assertRaises N/A N/A webob exc HTTPNotFound N/A N/A self controller show N/A self req DOESNOTEXIST N/A test_keypair_delete_not_found N/A N/A self N/A N/A db_key_pair_get_not_found N/A N/A context user_id name N/A N/A N/A N/A N/A exception KeypairNotFound user_id user_id name name N/A N/A N/A N/A self stub_out nova.db.key_pair_destroy db_key_pair_get_not_found N/A N/A N/A self assertRaises N/A N/A webob exc HTTPNotFound N/A N/A self controller delete N/A self req FAKE N/A test_keypair_show N/A N/A self N/A N/A _db_key_pair_get N/A N/A context user_id name N/A N/A N/A N/A dict N/A test_keypair fake_keypair name foo public_key XXX fingerprint YYY type ssh N/A N/A N/A N/A self stub_out nova.db.key_pair_get _db_key_pair_get N/A res_dict N/A N/A N/A self controller show N/A self req FAKE N/A N/A N/A self assertEqual foo N/A N/A res_dict N/A keypair N/A name N/A N/A N/A self assertEqual XXX N/A N/A res_dict N/A keypair N/A public_key N/A N/A N/A self assertEqual YYY N/A N/A res_dict N/A keypair N/A fingerprint N/A N/A N/A self _assert_keypair_type res_dict N/A test_keypair_show_not_found N/A N/A self N/A N/A _db_key_pair_get N/A N/A context user_id name N/A N/A N/A N/A N/A exception KeypairNotFound user_id user_id name name N/A N/A N/A N/A self stub_out nova.db.key_pair_get _db_key_pair_get N/A N/A N/A self assertRaises N/A N/A webob exc HTTPNotFound N/A N/A self controller show N/A self req FAKE N/A test_show_server N/A N/A self N/A N/A N/A N/A N/A self stub_out nova.db.instance_get N/A N/A fakes fake_instance_get N/A N/A N/A self stub_out nova.db.instance_get_by_uuid N/A N/A fakes fake_instance_get N/A req N/A N/A N/A webob Request blank N/A N/A N/A self base_url /servers/ N/A uuids server N/A N/A N/A req headers N/A Content-Type application/json N/A response N/A N/A req get_response N/A self app_server N/A N/A N/A self assertEqual N/A response status_int 200 N/A res_dict N/A N/A jsonutils loads N/A response body N/A N/A N/A self assertIn key_name N/A res_dict N/A server N/A N/A N/A self assertEqual N/A N/A res_dict N/A server N/A key_name N/A test_detail_servers N/A N/A self mock_get_all N/A N/A N/A N/A mock_get_all return_value N/A N/A objects InstanceList objects N/A N/A N/A fakes stub_instance_obj ctxt None id 1 N/A N/A fakes stub_instance_obj ctxt None id 2 N/A req N/A N/A N/A fakes HTTPRequest blank N/A N/A self base_url /servers/detail N/A res N/A N/A req get_response N/A self app_server N/A server_dicts N/A N/A N/A jsonutils loads N/A res body N/A servers N/A N/A N/A self assertEqual N/A len server_dicts 2 N/A server_dict server_dicts N/A N/A N/A N/A self assertIn key_name server_dict N/A N/A N/A self assertEqual N/A server_dict N/A key_name N/A N/A N/A mock patch nova.compute.api.API.get_all _assert_keypair_type N/A N/A self res_dict N/A N/A N/A N/A N/A self assertNotIn type N/A res_dict N/A keypair N/A test_create_server_keypair_name_with_leading_trailing N/A N/A self N/A N/A N/A req N/A N/A N/A fakes HTTPRequest blank N/A N/A self base_url /servers N/A N/A req method POST N/A N/A N/A req headers N/A content-type application/json N/A N/A req body N/A N/A jsonutils dump_as_bytes N/A server N/A name flavorRef keypair_name imageRef test 1   abc   FAKE_UUID N/A res N/A N/A req get_response N/A self app_server N/A N/A N/A self assertEqual 400 N/A res status_code N/A N/A N/A self assertIn keypair_name N/A res body N/A test_create_server_keypair_name_with_leading_trailing_compat_mode N/A N/A self mock_create N/A N/A N/A N/A mock_create return_value N/A N/A N/A objects InstanceList objects N/A N/A N/A fakes stub_instance_obj ctxt None id 1 None N/A req N/A N/A N/A fakes HTTPRequest blank N/A N/A self base_url /servers N/A N/A req method POST N/A N/A N/A req headers N/A content-type application/json N/A N/A req body N/A N/A jsonutils dump_as_bytes N/A server N/A name flavorRef keypair_name imageRef test 1   abc   FAKE_UUID N/A N/A N/A req set_legacy_v2 N/A res N/A N/A req get_response N/A self app_server N/A N/A N/A self assertEqual 202 N/A res status_code N/A N/A N/A N/A mock patch object N/A compute_api API create N/A KeypairPolicyTestV21 N/A N/A test NoDBTestCase N/A N/A KeyPairController N/A N/A keypairs_v21 KeypairController N/A policy_path os_compute_api:os-keypairs setUp N/A N/A self N/A N/A N/A N/A N/A N/A super KeypairPolicyTestV21 self setUp _db_key_pair_get N/A N/A context user_id name N/A N/A N/A N/A dict N/A test_keypair fake_keypair name foo public_key XXX fingerprint YYY type ssh N/A N/A N/A N/A self stub_out nova.db.key_pair_get _db_key_pair_get N/A N/A N/A self stub_out nova.db.key_pair_get_all_by_user db_key_pair_get_all_by_user N/A N/A N/A self stub_out nova.db.key_pair_destroy db_key_pair_destroy N/A N/A self req N/A N/A N/A fakes HTTPRequest blank N/A test_keypair_list_fail_policy N/A N/A self N/A N/A N/A rules N/A N/A N/A self policy_path :index role:admin N/A N/A N/A policy set_rules N/A N/A N/A oslo_policy Rules from_dict rules N/A N/A N/A self assertRaises N/A exception Forbidden N/A N/A self KeyPairController index N/A self req N/A test_keypair_list_pass_policy N/A N/A self N/A N/A N/A rules N/A N/A N/A self policy_path :index N/A N/A N/A policy set_rules N/A N/A N/A oslo_policy Rules from_dict rules N/A res N/A N/A N/A self KeyPairController index N/A self req N/A N/A N/A self assertIn keypairs res N/A test_keypair_show_fail_policy N/A N/A self N/A N/A N/A rules N/A N/A N/A self policy_path :show role:admin N/A N/A N/A policy set_rules N/A N/A N/A oslo_policy Rules from_dict rules N/A N/A N/A self assertRaises N/A exception Forbidden N/A N/A self KeyPairController show N/A self req FAKE N/A test_keypair_show_pass_policy N/A N/A self N/A N/A N/A rules N/A N/A N/A self policy_path :show N/A N/A N/A policy set_rules N/A N/A N/A oslo_policy Rules from_dict rules N/A res N/A N/A N/A self KeyPairController show N/A self req FAKE N/A N/A N/A self assertIn keypair res N/A test_keypair_create_fail_policy N/A N/A self N/A N/A N/A body N/A keypair N/A name create_test N/A rules N/A N/A N/A self policy_path :create role:admin N/A N/A N/A policy set_rules N/A N/A N/A oslo_policy Rules from_dict rules N/A N/A N/A self assertRaises N/A exception Forbidden N/A N/A self KeyPairController create N/A self req body body N/A _assert_keypair_create N/A N/A self mock_create req N/A N/A N/A N/A N/A mock_create assert_called_with req fake_user create_test ssh N/A test_keypair_create_pass_policy N/A N/A self mock_create N/A N/A N/A keypair_obj N/A N/A objects KeyPair name public_key fingerprint user_id N/A N/A mock_create return_value N/A keypair_obj dummy N/A body N/A keypair N/A name create_test N/A rules N/A N/A N/A self policy_path :create N/A N/A N/A policy set_rules N/A N/A N/A oslo_policy Rules from_dict rules N/A res N/A N/A N/A self KeyPairController create N/A self req body body N/A N/A N/A self assertIn keypair res N/A req N/A N/A N/A self req environ N/A nova.context N/A N/A N/A self _assert_keypair_create mock_create req N/A N/A N/A N/A mock patch object N/A compute_api KeypairAPI create_key_pair test_keypair_delete_fail_policy N/A N/A self N/A N/A N/A rules N/A N/A N/A self policy_path :delete role:admin N/A N/A N/A policy set_rules N/A N/A N/A oslo_policy Rules from_dict rules N/A N/A N/A self assertRaises N/A exception Forbidden N/A N/A self KeyPairController delete N/A self req FAKE N/A test_keypair_delete_pass_policy N/A N/A self N/A N/A N/A rules N/A N/A N/A self policy_path :delete N/A N/A N/A policy set_rules N/A N/A N/A oslo_policy Rules from_dict rules N/A N/A N/A N/A self KeyPairController delete N/A self req FAKE N/A N/A KeypairsTestV2 N/A KeypairsTestV21 N/A N/A validation_error N/A N/A webob exc HTTPBadRequest _setup_app_and_controller N/A N/A self N/A N/A N/A N/A self app_server N/A N/A fakes wsgi_app init_only N/A servers N/A N/A self controller N/A N/A keypairs_v2 KeypairController N/A test_keypair_create_with_name_leading_trailing_spaces N/A N/A self N/A N/A N/A body N/A keypair N/A name   test   N/A N/A N/A N/A self req set_legacy_v2 N/A res_dict N/A N/A N/A self controller create N/A self req body body N/A N/A N/A self assertEqual   test   N/A N/A res_dict N/A keypair N/A name N/A test_keypair_create_with_name_leading_trailing_spaces_compat_mode N/A N/A self N/A N/A N/A N/A test_create_server_keypair_name_with_leading_trailing N/A N/A self N/A N/A N/A N/A test_create_server_keypair_name_with_leading_trailing_compat_mode N/A N/A self mock_create N/A N/A N/A N/A mock_create return_value N/A N/A N/A objects InstanceList objects N/A N/A N/A fakes stub_instance_obj ctxt None id 1 None N/A req N/A N/A N/A fakes HTTPRequest blank N/A N/A self base_url /servers N/A N/A req method POST N/A N/A N/A req headers N/A content-type application/json N/A N/A req body N/A N/A jsonutils dump_as_bytes N/A server N/A name flavorRef keypair_name imageRef test 1   abc   FAKE_UUID N/A res N/A N/A req get_response N/A self app_server N/A N/A N/A self assertEqual 202 N/A res status_code N/A N/A N/A N/A mock patch object N/A compute_api API create N/A KeypairsTestV22 N/A KeypairsTestV21 N/A N/A wsgi_api_version 2.2 test_keypair_list N/A N/A self N/A N/A N/A res_dict N/A N/A N/A self controller index N/A self req N/A expected N/A keypairs N/A N/A keypair N/A dict keypair_data name FAKE type ssh N/A N/A N/A self assertEqual expected res_dict N/A _assert_keypair_type N/A N/A self res_dict N/A N/A N/A N/A N/A self assertEqual ssh N/A N/A res_dict N/A keypair N/A type N/A test_keypair_create_with_name_leading_trailing_spaces_compat_mode N/A N/A self N/A N/A N/A N/A test_create_server_keypair_name_with_leading_trailing_compat_mode N/A N/A self N/A N/A N/A N/A N/A KeypairsTestV210 N/A KeypairsTestV22 N/A N/A wsgi_api_version 2.10 test_keypair_create_with_name_leading_trailing_spaces_compat_mode N/A N/A self N/A N/A N/A N/A test_create_server_keypair_name_with_leading_trailing_compat_mode N/A N/A self N/A N/A N/A N/A test_keypair_list_other_user N/A N/A self N/A N/A N/A req N/A N/A N/A fakes HTTPRequest blank N/A N/A self base_url /os-keypairs?user_id=foo version N/A self wsgi_api_version use_admin_context True N/A N/A N/A N/A mock patch object N/A N/A self controller api get_key_pairs mock_g N/A N/A N/A N/A N/A self controller index req N/A userid N/A N/A N/A N/A mock_g call_args_list N/A 0 N/A 0 N/A 1 N/A N/A N/A self assertEqual foo userid N/A test_keypair_list_other_user_not_admin N/A N/A self N/A N/A N/A req N/A N/A N/A fakes HTTPRequest blank N/A N/A self base_url /os-keypairs?user_id=foo version N/A self wsgi_api_version N/A N/A N/A N/A mock patch object N/A N/A self controller api get_key_pairs N/A N/A N/A N/A self assertRaises N/A exception PolicyNotAuthorized N/A N/A self controller index req N/A test_keypair_show_other_user N/A N/A self N/A N/A N/A req N/A N/A N/A fakes HTTPRequest blank N/A N/A self base_url /os-keypairs/FAKE?user_id=foo version N/A self wsgi_api_version use_admin_context True N/A N/A N/A N/A mock patch object N/A N/A self controller api get_key_pair mock_g N/A N/A N/A N/A N/A self controller show req FAKE N/A userid N/A N/A N/A N/A mock_g call_args_list N/A 0 N/A 0 N/A 1 N/A N/A N/A self assertEqual foo userid N/A test_keypair_show_other_user_not_admin N/A N/A self N/A N/A N/A req N/A N/A N/A fakes HTTPRequest blank N/A N/A self base_url /os-keypairs/FAKE?user_id=foo version N/A self wsgi_api_version N/A N/A N/A N/A mock patch object N/A N/A self controller api get_key_pair N/A N/A N/A N/A self assertRaises N/A exception PolicyNotAuthorized N/A N/A self controller show req FAKE N/A test_keypair_delete_other_user N/A N/A self N/A N/A N/A req N/A N/A N/A fakes HTTPRequest blank N/A N/A self base_url /os-keypairs/FAKE?user_id=foo version N/A self wsgi_api_version use_admin_context True N/A N/A N/A N/A mock patch object N/A N/A self controller api delete_key_pair mock_g N/A N/A N/A N/A N/A self controller delete req FAKE N/A userid N/A N/A N/A N/A mock_g call_args_list N/A 0 N/A 0 N/A 1 N/A N/A N/A self assertEqual foo userid N/A test_keypair_delete_other_user_not_admin N/A N/A self N/A N/A N/A req N/A N/A N/A fakes HTTPRequest blank N/A N/A self base_url /os-keypairs/FAKE?user_id=foo version N/A self wsgi_api_version N/A N/A N/A N/A mock patch object N/A N/A self controller api delete_key_pair N/A N/A N/A N/A self assertRaises N/A exception PolicyNotAuthorized N/A N/A self controller delete req FAKE N/A test_keypair_create_other_user N/A N/A self N/A N/A N/A req N/A N/A N/A fakes HTTPRequest blank N/A N/A self base_url /os-keypairs version N/A self wsgi_api_version use_admin_context True N/A body N/A keypair N/A name user_id create_test 8861f37f-034e-4ca8-8abe-6d13c074574a N/A N/A N/A N/A mock patch object N/A N/A self controller api create_key_pair return_value N/A N/A N/A mock MagicMock 1 mock_g N/A N/A res N/A N/A N/A self controller create req body body N/A userid N/A N/A N/A N/A mock_g call_args_list N/A 0 N/A 0 N/A 1 N/A N/A N/A self assertEqual 8861f37f-034e-4ca8-8abe-6d13c074574a userid N/A N/A N/A self assertIn keypair res N/A test_keypair_import_other_user N/A N/A self N/A N/A N/A req N/A N/A N/A fakes HTTPRequest blank N/A N/A self base_url /os-keypairs version N/A self wsgi_api_version use_admin_context True N/A body N/A keypair N/A name user_id public_key create_test 8861f37f-034e-4ca8-8abe-6d13c074574a public_key N/A N/A N/A N/A mock patch object N/A N/A self controller api import_key_pair mock_g N/A N/A res N/A N/A N/A self controller create req body body N/A userid N/A N/A N/A N/A mock_g call_args_list N/A 0 N/A 0 N/A 1 N/A N/A N/A self assertEqual 8861f37f-034e-4ca8-8abe-6d13c074574a userid N/A N/A N/A self assertIn keypair res N/A test_keypair_create_other_user_not_admin N/A N/A self N/A N/A N/A req N/A N/A N/A fakes HTTPRequest blank N/A N/A self base_url /os-keypairs version N/A self wsgi_api_version N/A body N/A keypair N/A name user_id create_test 8861f37f-034e-4ca8-8abe-6d13c074574a N/A N/A N/A self assertRaises N/A exception PolicyNotAuthorized N/A N/A self controller create req body body N/A N/A KeypairPolicyTestV2 N/A KeypairPolicyTestV21 N/A N/A KeyPairController N/A N/A keypairs_v2 KeypairController N/A policy_path compute_extension:keypairs _assert_keypair_create N/A N/A self mock_create req N/A N/A N/A N/A N/A mock_create assert_called_with req fake_user create_test N/A N/A