Module Import alias ImportFrom alias ImportFrom alias 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 Expr Call AttributeLoad NameLoad attr Str Str FunctionDef arguments args defaults body Assign NameStore Dict Str Str Str Str Str Str Str Str Num Num Num Num Num Num Num Num Return Call AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword Dict Str NameLoad Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Str If NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr orelse Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Num Num Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad attr Num If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr Assign NameStore Dict Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr If CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Str If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Num Num Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword Dict Str NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Str If NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr orelse Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Num Num Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Assign NameStore Dict Str NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad decorator_list Assign NameStore Dict Str Str AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults NameLoad body If CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body If SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Expr CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr orelse If CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr keyword NameLoad attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword NameLoad keyword ListLoad keyword Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Assign NameStore Dict Str NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Dict Str Dict Str Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Dict Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults NameLoad body If CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse If CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr keyword NameLoad attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad keyword NameLoad keyword ListLoad keyword Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr 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 FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list
N/A N/A mock mox3 mox oslo_config cfg oslo_utils fixture utils_fixture oslo_utils timeutils nova.compute claims nova.compute task_states nova.compute vm_states nova db nova objects nova.tests.unit.compute test_compute nova.tests.unit.image fake fake_image N/A CONF N/A cfg CONF N/A N/A N/A CONF import_opt shelved_offload_time nova.compute.manager _fake_resources N/A N/A N/A N/A N/A resources N/A memory_mb memory_mb_used free_ram_mb local_gb local_gb_used free_disk_gb vcpus vcpus_used 2048 0 2048 20 0 20 2 0 N/A N/A N/A objects ComputeNode resources N/A ShelveComputeManagerTestCase N/A N/A test_compute BaseTestCase N/A _shelve_instance N/A N/A self shelved_offload_time clean_shutdown N/A True N/A N/A N/A N/A CONF set_override shelved_offload_time shelved_offload_time N/A host fake-mini N/A instance N/A N/A self _create_fake_instance_obj params N/A host host N/A image_id fake_image_id N/A host fake-mini N/A N/A N/A self useFixture N/A N/A utils_fixture TimeFixture N/A N/A instance task_state N/A task_states SHELVING N/A N/A N/A instance save N/A N/A N/A N/A self mox StubOutWithMock N/A self compute _notify_about_instance_usage N/A N/A N/A N/A self mox StubOutWithMock N/A N/A self compute driver snapshot N/A N/A N/A N/A self mox StubOutWithMock N/A N/A self compute driver power_off N/A N/A N/A N/A self mox StubOutWithMock N/A self compute _get_power_state N/A N/A N/A N/A self mox StubOutWithMock N/A N/A self compute network_api cleanup_instance_network_on_host N/A N/A N/A N/A self compute _notify_about_instance_usage N/A self context instance shelve.start N/A clean_shutdown N/A N/A N/A N/A N/A N/A self compute driver power_off instance N/A CONF shutdown_timeout N/A N/A self compute SHUTDOWN_RETRY_INTERVAL N/A N/A N/A N/A N/A N/A self compute driver power_off instance 0 0 N/A N/A N/A N/A N/A N/A self compute _get_power_state N/A self context instance AndReturn 123 N/A N/A N/A CONF shelved_offload_time 0 N/A N/A N/A N/A N/A N/A self compute network_api cleanup_instance_network_on_host N/A self context instance N/A instance host N/A N/A N/A N/A N/A self compute driver snapshot N/A self context instance fake_image_id N/A N/A mox IgnoreArg N/A tracking N/A last_state N/A instance vm_state check_save N/A N/A expected_task_state N/A None N/A N/A N/A N/A self assertEqual 123 N/A instance power_state N/A N/A N/A tracking N/A last_state N/A vm_states ACTIVE N/A N/A N/A N/A CONF shelved_offload_time 0 N/A N/A N/A N/A self assertEqual N/A task_states SHELVING_OFFLOADING N/A instance task_state N/A N/A N/A N/A self assertIsNone N/A instance task_state N/A N/A N/A self assertEqual N/A vm_states SHELVED N/A instance vm_state N/A N/A N/A self assertEqual N/A N/A task_states SHELVING N/A task_states SHELVING_IMAGE_UPLOADING expected_task_state N/A N/A N/A self assertIn shelved_at N/A instance system_metadata N/A N/A N/A self assertEqual image_id N/A N/A instance system_metadata N/A shelved_image_id N/A N/A N/A self assertEqual host N/A N/A instance system_metadata N/A shelved_host N/A N/A tracking N/A last_state N/A instance vm_state N/A N/A N/A N/A N/A tracking N/A last_state N/A vm_states SHELVED N/A N/A CONF shelved_offload_time 0 N/A N/A N/A N/A self assertIsNone N/A instance host N/A N/A N/A self assertIsNone N/A instance node N/A N/A N/A self assertIsNone N/A instance task_state N/A N/A N/A self assertEqual N/A vm_states SHELVED_OFFLOADED N/A instance vm_state N/A N/A N/A self assertEqual N/A N/A task_states SHELVING N/A task_states SHELVING_OFFLOADING expected_task_state N/A N/A tracking N/A last_state N/A instance vm_state N/A N/A N/A N/A self fail Unexpected save! N/A N/A N/A N/A N/A self compute _notify_about_instance_usage N/A self context instance shelve.end N/A N/A N/A CONF shelved_offload_time 0 N/A N/A N/A N/A N/A self compute _notify_about_instance_usage N/A self context instance shelve_offload.start N/A N/A N/A N/A N/A self compute driver power_off instance 0 0 N/A N/A N/A N/A N/A N/A self compute _get_power_state N/A self context instance AndReturn 123 N/A N/A N/A N/A self compute _notify_about_instance_usage N/A self context instance shelve_offload.end N/A N/A N/A N/A self mox ReplayAll N/A N/A N/A N/A mock patch object instance save mock_save N/A N/A N/A mock_save side_effect check_save N/A N/A N/A N/A self compute shelve_instance N/A self context instance image_id image_id clean_shutdown clean_shutdown N/A test_shelve N/A N/A self N/A N/A N/A N/A N/A self _shelve_instance -1 N/A test_shelve_forced_shutdown N/A N/A self N/A N/A N/A N/A N/A self _shelve_instance -1 clean_shutdown False N/A test_shelve_and_offload N/A N/A self N/A N/A N/A N/A N/A self _shelve_instance 0 N/A _shelve_offload N/A N/A self clean_shutdown N/A True N/A N/A host fake-mini N/A instance N/A N/A self _create_fake_instance_obj params N/A host host N/A N/A instance task_state N/A task_states SHELVING N/A N/A N/A instance save N/A N/A N/A self useFixture N/A N/A utils_fixture TimeFixture N/A N/A N/A N/A self mox StubOutWithMock N/A self compute _notify_about_instance_usage N/A N/A N/A N/A self mox StubOutWithMock N/A N/A self compute driver power_off N/A N/A N/A N/A self mox StubOutWithMock N/A self compute _get_power_state N/A N/A N/A N/A self mox StubOutWithMock N/A N/A self compute network_api cleanup_instance_network_on_host N/A N/A N/A N/A self mox StubOutWithMock N/A self compute _update_resource_tracker N/A N/A N/A N/A self compute _notify_about_instance_usage N/A self context instance shelve_offload.start N/A clean_shutdown N/A N/A N/A N/A N/A N/A self compute driver power_off instance N/A CONF shutdown_timeout N/A N/A self compute SHUTDOWN_RETRY_INTERVAL N/A N/A N/A N/A N/A N/A self compute driver power_off instance 0 0 N/A N/A N/A N/A N/A self compute network_api cleanup_instance_network_on_host N/A self context instance N/A instance host N/A N/A N/A N/A N/A N/A self compute _get_power_state N/A self context instance AndReturn 123 N/A N/A N/A N/A self compute _update_resource_tracker N/A self context instance N/A N/A N/A N/A self compute _notify_about_instance_usage N/A self context instance shelve_offload.end N/A N/A N/A N/A self mox ReplayAll N/A N/A N/A N/A mock patch object instance save N/A N/A N/A N/A N/A self compute shelve_offload_instance N/A self context instance clean_shutdown clean_shutdown N/A N/A N/A self assertEqual N/A vm_states SHELVED_OFFLOADED N/A instance vm_state N/A N/A N/A self assertIsNone N/A instance task_state N/A test_shelve_offload N/A N/A self N/A N/A N/A N/A N/A self _shelve_offload N/A test_shelve_offload_forced_shutdown N/A N/A self N/A N/A N/A N/A N/A self _shelve_offload clean_shutdown False N/A test_unshelve N/A N/A self N/A N/A N/A instance N/A N/A self _create_fake_instance_obj N/A N/A instance task_state N/A task_states UNSHELVING N/A N/A N/A instance save N/A image N/A id fake_id N/A node N/A test_compute NODENAME N/A limits N/A N/A filter_properties N/A limits limits N/A host fake-mini N/A cur_time N/A N/A timeutils utcnow N/A sys_meta N/A dict N/A instance system_metadata N/A N/A sys_meta N/A shelved_at N/A N/A cur_time isoformat N/A N/A sys_meta N/A shelved_image_id N/A image N/A id N/A N/A sys_meta N/A shelved_host host N/A N/A instance system_metadata sys_meta N/A N/A N/A N/A self mox StubOutWithMock N/A self compute _notify_about_instance_usage N/A N/A N/A N/A self mox StubOutWithMock N/A self compute _prep_block_device N/A N/A N/A N/A self mox StubOutWithMock N/A N/A self compute driver spawn N/A N/A N/A N/A self mox StubOutWithMock N/A self compute _get_power_state N/A N/A N/A N/A self mox StubOutWithMock N/A self rt instance_claim N/A N/A N/A N/A self mox StubOutWithMock N/A N/A self compute network_api setup_instance_network_on_host N/A N/A self deleted_image_id None fake_delete N/A N/A self2 ctxt image_id N/A N/A N/A N/A self deleted_image_id image_id N/A fake_claim N/A N/A context instance limits N/A N/A N/A N/A instance host N/A N/A self compute host N/A N/A N/A claims Claim context instance N/A self rt N/A _fake_resources N/A N/A tracking N/A last_state spawned N/A instance task_state False check_save N/A N/A expected_task_state N/A None N/A N/A N/A N/A tracking N/A last_state N/A task_states UNSHELVING N/A N/A N/A tracking N/A spawned N/A N/A N/A N/A self assertIsNone N/A instance task_state N/A N/A N/A N/A self assertEqual N/A task_states SPAWNING N/A instance task_state N/A N/A tracking N/A spawned True N/A N/A N/A tracking N/A last_state N/A instance task_state N/A N/A N/A N/A tracking N/A last_state N/A task_states SPAWNING N/A N/A N/A N/A self assertEqual N/A vm_states ACTIVE N/A instance vm_state N/A N/A N/A tracking N/A last_state N/A instance task_state N/A N/A N/A N/A self fail Unexpected save! N/A N/A N/A N/A fake_image stub_out_image_service self N/A N/A N/A N/A self stubs Set N/A fake_image _FakeImageService delete fake_delete N/A N/A N/A N/A self compute _notify_about_instance_usage N/A self context instance unshelve.start N/A N/A N/A N/A N/A N/A self compute _prep_block_device N/A self context instance N/A N/A mox IgnoreArg do_check_attach False AndReturn fake_bdm N/A N/A N/A N/A N/A self compute network_api setup_instance_network_on_host N/A self context instance N/A N/A self compute host N/A N/A N/A N/A N/A self compute driver spawn N/A self context instance N/A N/A mox IsA N/A objects ImageMeta injected_files N/A admin_password None network_info N/A block_device_info fake_bdm N/A N/A N/A N/A N/A N/A self compute _get_power_state N/A self context instance AndReturn 123 N/A N/A N/A N/A self compute _notify_about_instance_usage N/A self context instance unshelve.end N/A N/A N/A N/A self mox ReplayAll N/A N/A N/A N/A mock patch object N/A self rt instance_claim side_effect fake_claim N/A N/A N/A N/A N/A mock patch object instance save mock_save N/A N/A N/A mock_save side_effect check_save N/A N/A N/A N/A self compute unshelve_instance N/A self context instance image image filter_properties filter_properties node node N/A N/A N/A self assertNotIn shelved_at N/A instance system_metadata N/A N/A N/A self assertNotIn shelved_image_id N/A instance system_metadata N/A N/A N/A self assertNotIn shelved_host N/A instance system_metadata N/A N/A N/A self assertEqual N/A image N/A id N/A self deleted_image_id N/A N/A N/A self assertEqual N/A instance host N/A N/A self compute host N/A N/A N/A self assertEqual 123 N/A instance power_state N/A N/A N/A self assertEqual N/A vm_states ACTIVE N/A instance vm_state N/A N/A N/A self assertIsNone N/A instance task_state N/A N/A N/A self assertIsNone N/A instance key_data N/A N/A N/A self assertEqual N/A N/A self compute host N/A instance host N/A N/A N/A self assertFalse N/A instance auto_disk_config N/A test_unshelve_volume_backed N/A N/A self mock_image_meta N/A N/A N/A instance N/A N/A self _create_fake_instance_obj N/A node N/A test_compute NODENAME N/A limits N/A N/A filter_properties N/A limits limits N/A N/A instance task_state N/A task_states UNSHELVING N/A N/A N/A instance save N/A image_meta N/A properties N/A base_image_ref fake_id N/A N/A mock_image_meta return_value image_meta N/A N/A N/A N/A self mox StubOutWithMock N/A self compute _notify_about_instance_usage N/A N/A N/A N/A self mox StubOutWithMock N/A self compute _prep_block_device N/A N/A N/A N/A self mox StubOutWithMock N/A N/A self compute driver spawn N/A N/A N/A N/A self mox StubOutWithMock N/A self compute _get_power_state N/A N/A N/A N/A self mox StubOutWithMock N/A self rt instance_claim N/A N/A N/A N/A self mox StubOutWithMock N/A N/A self compute network_api setup_instance_network_on_host N/A tracking N/A last_state N/A instance task_state check_save N/A N/A expected_task_state N/A None N/A N/A N/A N/A tracking N/A last_state N/A task_states UNSHELVING N/A N/A N/A N/A self assertEqual N/A task_states SPAWNING N/A instance task_state N/A N/A tracking N/A last_state N/A instance task_state N/A N/A N/A N/A tracking N/A last_state N/A task_states SPAWNING N/A N/A N/A N/A self assertEqual 123 N/A instance power_state N/A N/A N/A self assertEqual N/A vm_states ACTIVE N/A instance vm_state N/A N/A N/A self assertIsNone N/A instance task_state N/A N/A N/A self assertIsNone N/A instance key_data N/A N/A N/A self assertFalse N/A instance auto_disk_config N/A N/A N/A self assertIsNone N/A instance task_state N/A N/A tracking N/A last_state N/A instance task_state N/A N/A N/A N/A self fail Unexpected save! N/A N/A N/A N/A N/A self compute _notify_about_instance_usage N/A self context instance unshelve.start N/A N/A N/A N/A N/A N/A self compute _prep_block_device N/A self context instance N/A N/A mox IgnoreArg do_check_attach False AndReturn fake_bdm N/A N/A N/A N/A N/A self compute network_api setup_instance_network_on_host N/A self context instance N/A N/A self compute host N/A N/A N/A N/A N/A N/A self rt instance_claim N/A self context instance limits AndReturn N/A N/A claims Claim N/A self context instance N/A self rt N/A _fake_resources N/A N/A N/A N/A N/A self compute driver spawn N/A self context instance N/A N/A mox IsA N/A objects ImageMeta injected_files N/A admin_password None network_info N/A block_device_info fake_bdm N/A N/A N/A N/A N/A N/A self compute _get_power_state N/A self context instance AndReturn 123 N/A N/A N/A N/A self compute _notify_about_instance_usage N/A self context instance unshelve.end N/A N/A N/A N/A self mox ReplayAll N/A N/A N/A N/A mock patch object instance save mock_save N/A N/A N/A mock_save side_effect check_save N/A N/A N/A N/A self compute unshelve_instance N/A self context instance image None filter_properties filter_properties node node N/A N/A N/A mock patch nova.utils.get_image_from_system_metadata test_shelved_poll_none_offloaded N/A N/A self mock_get_by_filters N/A N/A N/A N/A N/A self flags shelved_offload_time -1 N/A N/A N/A N/A self compute _poll_shelved_instances N/A self context N/A N/A N/A self assertEqual 0 N/A mock_get_by_filters call_count N/A N/A N/A N/A mock patch object N/A objects InstanceList get_by_filters test_shelved_poll_none_exist N/A N/A self mock_older N/A N/A N/A N/A N/A self flags shelved_offload_time 1 N/A N/A mock_older return_value False N/A N/A N/A N/A mock patch object N/A self compute shelve_offload_instance soi N/A N/A N/A N/A N/A self compute _poll_shelved_instances N/A self context N/A N/A N/A self assertFalse N/A soi called N/A N/A N/A mock patch oslo_utils.timeutils.is_older_than test_shelved_poll_not_timedout N/A N/A self mock_older N/A N/A N/A N/A mock_older return_value False N/A N/A N/A self flags shelved_offload_time 1 N/A shelved_time N/A N/A timeutils utcnow N/A time_fixture N/A N/A self useFixture N/A N/A utils_fixture TimeFixture shelved_time N/A N/A N/A time_fixture advance_time_seconds N/A N/A CONF shelved_offload_time 1 N/A instance N/A N/A self _create_fake_instance_obj N/A N/A instance vm_state N/A vm_states SHELVED N/A N/A instance task_state None N/A N/A instance host N/A N/A self compute host N/A sys_meta N/A instance system_metadata N/A N/A sys_meta N/A shelved_at N/A N/A shelved_time isoformat N/A N/A N/A instance save N/A N/A N/A N/A mock patch object N/A self compute shelve_offload_instance soi N/A N/A N/A N/A N/A self compute _poll_shelved_instances N/A self context N/A N/A N/A self assertFalse N/A soi called N/A N/A N/A self assertTrue N/A mock_older called N/A N/A N/A mock patch oslo_utils.timeutils.is_older_than test_shelved_poll_timedout N/A N/A self N/A N/A N/A N/A N/A self flags shelved_offload_time 1 N/A shelved_time N/A N/A timeutils utcnow N/A time_fixture N/A N/A self useFixture N/A N/A utils_fixture TimeFixture shelved_time N/A N/A N/A time_fixture advance_time_seconds N/A N/A CONF shelved_offload_time 1 N/A instance N/A N/A self _create_fake_instance_obj N/A N/A instance vm_state N/A vm_states SHELVED N/A N/A instance task_state None N/A N/A instance host N/A N/A self compute host N/A sys_meta N/A instance system_metadata N/A N/A sys_meta N/A shelved_at N/A N/A shelved_time isoformat N/A N/A N/A instance save N/A data N/A fake_soi N/A N/A context instance N/A kwargs N/A N/A N/A N/A data append N/A instance uuid N/A N/A N/A N/A N/A mock patch object N/A self compute shelve_offload_instance soi N/A N/A N/A soi side_effect fake_soi N/A N/A N/A N/A self compute _poll_shelved_instances N/A self context N/A N/A N/A self assertTrue N/A soi called N/A N/A N/A self assertEqual N/A instance uuid N/A data N/A 0 N/A test_shelved_poll_filters_task_state N/A N/A self mock_parse mock_older N/A N/A N/A N/A N/A self flags shelved_offload_time 1 N/A N/A mock_older return_value True N/A instance1 N/A N/A self _create_fake_instance_obj N/A N/A instance1 task_state N/A task_states SPAWNING N/A N/A instance1 vm_state N/A vm_states SHELVED N/A N/A instance1 host N/A N/A self compute host N/A N/A instance1 system_metadata N/A shelved_at N/A N/A N/A instance1 save N/A instance2 N/A N/A self _create_fake_instance_obj N/A N/A instance2 task_state None N/A N/A instance2 vm_state N/A vm_states SHELVED N/A N/A instance2 host N/A N/A self compute host N/A N/A instance2 system_metadata N/A shelved_at N/A N/A N/A instance2 save N/A data N/A fake_soi N/A N/A context instance N/A kwargs N/A N/A N/A N/A data append N/A instance uuid N/A N/A N/A N/A N/A mock patch object N/A self compute shelve_offload_instance soi N/A N/A N/A soi side_effect fake_soi N/A N/A N/A N/A self compute _poll_shelved_instances N/A self context N/A N/A N/A self assertTrue N/A soi called N/A N/A N/A self assertEqual N/A N/A instance2 uuid data N/A N/A N/A mock patch oslo_utils.timeutils.is_older_than N/A N/A mock patch oslo_utils.timeutils.parse_strtime test_shelved_poll_checks_task_state_on_save N/A N/A self mock_parse mock_older N/A N/A N/A N/A N/A self flags shelved_offload_time 1 N/A N/A mock_older return_value True N/A instance N/A N/A self _create_fake_instance_obj N/A N/A instance task_state None N/A N/A instance vm_state N/A vm_states SHELVED N/A N/A instance host N/A N/A self compute host N/A N/A instance system_metadata N/A shelved_at N/A N/A N/A instance save fake_parse_hook N/A N/A timestring N/A N/A N/A N/A instance task_state N/A task_states SPAWNING N/A N/A N/A instance save N/A N/A N/A mock_parse side_effect fake_parse_hook N/A N/A N/A N/A mock patch object N/A self compute shelve_offload_instance soi N/A N/A N/A N/A N/A self compute _poll_shelved_instances N/A self context N/A N/A N/A self assertFalse N/A soi called N/A N/A N/A mock patch oslo_utils.timeutils.is_older_than N/A N/A mock patch oslo_utils.timeutils.parse_strtime N/A ShelveComputeAPITestCase N/A N/A test_compute BaseTestCase N/A test_shelve N/A N/A self N/A N/A N/A fake_instance N/A N/A self _create_fake_instance_obj N/A display_name vm01 N/A instance fake_instance N/A N/A N/A self assertIsNone N/A instance N/A task_state fake_init N/A N/A self2 N/A N/A N/A N/A self2 images N/A N/A fake_create N/A N/A self2 ctxt metadata data N/A None N/A N/A N/A N/A self assertEqual N/A metadata N/A name vm01-shelved N/A N/A metadata N/A id 8b24ed3f-ee57-43bc-bc2e-fb2e9482bc42 N/A metadata N/A N/A N/A N/A fake_image stub_out_image_service self N/A N/A N/A N/A self stubs Set N/A fake_image _FakeImageService __init__ fake_init N/A N/A N/A N/A self stubs Set N/A fake_image _FakeImageService create fake_create N/A N/A N/A N/A self compute_api shelve N/A self context instance N/A N/A N/A self assertEqual N/A instance task_state N/A task_states SHELVING N/A N/A N/A db instance_destroy N/A self context N/A instance N/A uuid N/A test_unshelve N/A N/A self get_by_instance_uuid N/A N/A N/A instance N/A N/A self _create_fake_instance_obj N/A N/A N/A self assertIsNone N/A instance N/A task_state N/A N/A N/A N/A self compute_api shelve N/A self context instance N/A N/A instance task_state None N/A N/A instance vm_state N/A vm_states SHELVED N/A N/A N/A instance save N/A fake_spec N/A N/A objects RequestSpec N/A N/A get_by_instance_uuid return_value fake_spec N/A N/A N/A N/A mock patch object N/A N/A self compute_api compute_task_api unshelve_instance unshelve N/A N/A N/A N/A N/A self compute_api unshelve N/A self context instance N/A N/A N/A get_by_instance_uuid assert_called_once_with N/A self context N/A instance uuid N/A N/A N/A unshelve assert_called_once_with N/A self context instance fake_spec N/A N/A N/A self assertEqual N/A instance task_state N/A task_states UNSHELVING N/A N/A N/A db instance_destroy N/A self context N/A instance N/A uuid N/A N/A N/A N/A mock patch object N/A objects RequestSpec get_by_instance_uuid N/A