  def testCreateDiskCopy1(self,
                          mock_gce_api,
                          mock_get_instance,
                          mock_get_boot_disk,
                          mock_get_disk,
                          mock_block_operation,
                          mock_disk_type):
    """Test that a disk from a remote project is duplicated and attached to
    an analysis project. """
    instances = mock_gce_api.return_value.instances.return_value.aggregatedList
    instances.return_value.execute.return_value = gcp_mocks.MOCK_INSTANCES_AGGREGATED
    mock_get_instance.return_value = gcp_mocks.FAKE_INSTANCE
    mock_get_boot_disk.return_value = gcp_mocks.FAKE_BOOT_DISK
    mock_block_operation.return_value = None
    mock_disk_type.return_value = 'fake-disk-type'

    # create_disk_copy(
    #     src_proj,
    #     dst_proj,
    #     zone='fake-zone',
    #     instance_name='fake-instance',
    #     disk_name=None) Should grab the boot disk
    new_disk = forensics.CreateDiskCopy(gcp_mocks.FAKE_SOURCE_PROJECT.project_id,
                                        gcp_mocks.FAKE_ANALYSIS_PROJECT.project_id,
                                        zone=gcp_mocks.FAKE_INSTANCE.zone,
                                        instance_name=gcp_mocks.FAKE_INSTANCE.name)
    mock_get_instance.assert_called_with(gcp_mocks.FAKE_INSTANCE.name)
    mock_get_disk.assert_not_called()
    self.assertIsInstance(new_disk, compute.GoogleComputeDisk)
    self.assertTrue(new_disk.name.startswith('evidence-'))
    self.assertIn('fake-boot-disk', new_disk.name)
    self.assertTrue(new_disk.name.endswith('-copy'))
Test that a disk from a remote project is duplicated and attached to
an analysis project.
tests/providers/gcp/test_forensics.py