Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias ClassDef bases body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Str Assign AttributeStore NameLoad attr ListLoad Call NameLoad keyword Str keyword Str keyword Str keyword Str keyword Str keyword Str keyword Str keyword Str Assign NameStore Call NameLoad Call NameLoad keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Num Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad Assert CompareEq AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Num Str Assert CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad Str Str Str Assert CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call NameLoad Str Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Num Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str AttributeLoad NameLoad attr NameLoad Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str keyword Str keyword Str keyword Str keyword NameLoad keyword Str keyword AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad keyword NameLoad Assert CompareEq SubscriptLoad NameLoad Index Str Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str AttributeLoad NameLoad attr decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str AttributeLoad NameLoad attr decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str AttributeLoad NameLoad attr decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list Call NameLoad NameLoad decorator_list
N/A N/A sys N/A mock mock patch test_helper * azurectl.account.service AzureAccount azurectl.config.parser Config azurectl.azurectl_exceptions * azurectl.instance.virtual_machine VirtualMachine azure.servicemanagement OSVirtualHardDisk N/A azurectl collections namedtuple TestVirtualMachine N/A N/A setup N/A N/A self N/A N/A N/A MyStruct N/A namedtuple MyStruct name label os category description location              affinity_group media_link N/A N/A self list_os_images N/A N/A MyStruct name some-name label bob os linux category cloud description nice location here affinity_group ok media_link url N/A account N/A AzureAccount N/A Config region_name East US 2 filename ../data/config N/A N/A self service N/A N/A mock Mock N/A N/A account get_management_service N/A N/A mock Mock return_value N/A self service N/A N/A account get_blob_service_host_base N/A N/A mock Mock return_value test.url N/A N/A account storage_key N/A N/A mock Mock N/A N/A self account account N/A N/A self vm N/A VirtualMachine account N/A N/A self system_config N/A N/A N/A self vm create_linux_configuration some-user some-host N/A test_create_network_configuration N/A N/A self N/A N/A N/A endpoint N/A N/A N/A self vm create_network_endpoint SSH 22 22 TCP N/A config N/A N/A N/A self vm create_network_configuration N/A endpoint N/A N/A N/A N/A N/A config input_endpoints N/A 0 name SSH N/A test_create_network_endpoint N/A N/A self N/A N/A N/A endpoint N/A N/A N/A self vm create_network_endpoint SSH 22 22 TCP N/A N/A N/A endpoint name SSH N/A test_create_linux_configuration N/A N/A self N/A N/A N/A config N/A N/A N/A self vm create_linux_configuration user instance-name True password custom-data fingerprint N/A N/A N/A config user_name user N/A test_create_instance N/A N/A self mock_os_disk N/A N/A N/A storage_properties N/A N/A mock MagicMock N/A N/A N/A storage_properties storage_service_properties location region N/A N/A N/A N/A self service get_storage_account_properties return_value storage_properties N/A service_properties N/A N/A mock MagicMock N/A N/A N/A service_properties hosted_service_properties location region N/A N/A N/A N/A self service get_hosted_service_properties return_value service_properties N/A image_locations N/A N/A mock MagicMock N/A N/A image_locations location region N/A N/A N/A N/A self service get_os_image return_value image_locations N/A os_disk N/A OSVirtualHardDisk foo foo N/A N/A mock_os_disk return_value os_disk N/A endpoint N/A N/A N/A self vm create_network_endpoint SSH 22 22 TCP N/A network_config N/A N/A N/A self vm create_network_configuration N/A endpoint N/A result N/A N/A N/A self vm create_instance cloud-service foo.vhd N/A self system_config network_config some-label reserved_ip_name test_reserved_ip_name N/A N/A N/A mock_os_disk assert_called_once_with foo.vhd https://bob.blob.test.url/foo/cloud-service_instance_some-host_image_foo.vhd N/A N/A N/A N/A N/A self service create_virtual_machine_deployment assert_called_once_with deployment_slot production role_size Small deployment_name cloud-service service_name cloud-service os_virtual_hard_disk os_disk label some-label system_config N/A self system_config reserved_ip_name test_reserved_ip_name role_name cloud-service network_config network_config provision_guest_agent True N/A N/A N/A result N/A instance_name some-host N/A N/A patch azurectl.instance.virtual_machine.OSVirtualHardDisk test_create_instance_raise_vm_create_error N/A N/A self N/A N/A N/A storage_properties N/A N/A mock MagicMock N/A N/A N/A storage_properties storage_service_properties location region N/A N/A N/A N/A self service get_storage_account_properties return_value storage_properties N/A service_properties N/A N/A mock MagicMock N/A N/A N/A service_properties hosted_service_properties location region N/A N/A N/A N/A self service get_hosted_service_properties return_value service_properties N/A image_locations N/A N/A mock MagicMock N/A N/A image_locations location region N/A N/A N/A N/A self service get_os_image return_value image_locations N/A N/A N/A N/A self service create_virtual_machine_deployment side_effect AzureVmCreateError N/A result N/A N/A N/A self vm create_instance cloud-service foo.vhd N/A self system_config N/A N/A raises AzureVmCreateError test_delete_instance N/A N/A self N/A N/A N/A N/A N/A N/A self vm delete_instance cloud-service foo N/A N/A N/A N/A N/A self service delete_deployment assert_called_once_with cloud-service foo N/A test_create_instance_raise_storage_not_reachable_error N/A N/A self N/A N/A N/A storage_properties N/A N/A mock MagicMock N/A N/A N/A storage_properties storage_service_properties location regionA N/A N/A N/A N/A self service get_storage_account_properties return_value storage_properties N/A service_properties N/A N/A mock MagicMock N/A N/A N/A service_properties hosted_service_properties location regionB N/A N/A N/A N/A self service get_hosted_service_properties return_value service_properties N/A result N/A N/A N/A self vm create_instance foo some-region foo.vhd N/A self system_config N/A N/A raises AzureStorageNotReachableByCloudServiceError test_create_instance_raise_image_not_reachable_error N/A N/A self N/A N/A N/A storage_properties N/A N/A mock MagicMock N/A N/A N/A storage_properties storage_service_properties location regionA N/A N/A N/A N/A self service get_storage_account_properties return_value storage_properties N/A service_properties N/A N/A mock MagicMock N/A N/A N/A service_properties hosted_service_properties location regionA N/A N/A N/A N/A self service get_hosted_service_properties return_value service_properties N/A image_locations N/A N/A mock MagicMock N/A N/A image_locations location regionB N/A N/A N/A N/A self service get_os_image return_value image_locations N/A result N/A N/A N/A self vm create_instance foo some-region foo.vhd N/A self system_config N/A N/A raises AzureImageNotReachableByCloudServiceError test_delete_instance_raise_vm_delete_error N/A N/A self N/A N/A N/A N/A N/A N/A self service delete_deployment side_effect AzureVmDeleteError N/A N/A N/A N/A self vm delete_instance cloud-service foo N/A N/A raises AzureVmDeleteError N/A