'Test image file is cached when even when use_linked_clone
is False'

@mock.patch.object(nova.virt.vmwareapi.images.VMwareImage, 'from_image')
def test_instance_dir_disk_created(self, mock_from_image):

    img_props = images.VMwareImage(image_id=self.fake_image_uuid, linked_clone=False)
    mock_from_image.return_value = img_props
    self._create_vm()
    path = ds_obj.DatastorePath(self.ds, self.uuid, ('%s.vmdk' % self.uuid))
    vmwareapi_fake.assertPathExists(self, str(path))
    self._cached_files_exist()
