def METHOD_NAME(
    self, mock_Partitioner, mock_DiskFormat
):
    partitioner = Mock()
    mock_Partitioner.return_value = partitioner
    image_format = Mock()
    image_format.resize_raw_disk.return_value = False
    mock_DiskFormat.return_value = image_format
    self._init_command_args()
    self.task.command_args['resize'] = True
    self.task.command_args['--size'] = '42'
    with self._caplog.at_level(logging.INFO):
        self.task.process()
        self.loop_provider.create.assert_called_once_with(overwrite=False)
        partitioner.resize_table.assert_called_once_with()
        image_format.resize_raw_disk.assert_called_once_with(
            42
        )
        assert 'Loading XML description' in self._caplog.text
        assert '--> loaded {0}'.format(
            os.sep.join([self.abs_root_dir, 'image', 'config.xml'])
        ) in self._caplog.text
        assert '--> Selected build type: oem' in self._caplog.text
        assert '--> Selected profiles: vmxSimpleFlavour' in self._caplog.text
        assert 'Resizing raw disk to 42 bytes' in self._caplog.text
        assert 'Raw disk is already at 42 bytes' in self._caplog.text