def METHOD_NAME(self, mock_DiskFormat):
    image_format = Mock()
    image_format.has_raw_disk.return_value = False
    mock_DiskFormat.return_value = image_format
    self._init_command_args()
    self.task.command_args['resize'] = True
    with raises(KiwiImageResizeError):
        self.task.process()