  def testGetDisk(self, mock_list_disk):
    """Test that a particular disk from an instance is retrieved."""
    mock_list_disk.return_value = azure_mocks.MOCK_LIST_DISKS
    disk = azure_mocks.FAKE_INSTANCE.GetDisk('fake-disk-name')
    self.assertEqual('fake-disk-name', disk.name)

    with self.assertRaises(errors.ResourceNotFoundError) as error:
      azure_mocks.FAKE_INSTANCE.GetDisk('non-existent-disk-name')
    self.assertEqual(
        'Disk non-existent-disk-name was not found in instance '
        '/subscriptions/sub/resourceGroups/fake-resource-group/providers/'
        'Microsoft.Compute/type/fake-vm-name', str(error.exception))
Test that a particular disk from an instance is retrieved.
tests/providers/azure/internal/test_compute.py