def METHOD_NAME(monkeypatch):
    monkeypatch.setattr(reporting, 'create_report', testutils.create_report_mocked())
    def run_mocked(args):
        if args == ['grub2-install', '/dev/vdb']:
            raise_call_error(args)
        else:
            assert args == ['grub2-install', '/dev/vda']
    monkeypatch.setattr(updategrubcore, 'run', run_mocked)
    devices = ['/dev/vda', '/dev/vdb']
    updategrubcore.update_grub_core(devices)
    assert reporting.create_report.called
    assert UPDATE_FAILED_TITLE == reporting.create_report.reports[0]['title']
    summary = reporting.create_report.reports[0]['summary']
    assert 'GRUB was successfully updated on the following devices: /dev/vda' in summary
    assert 'however GRUB update failed on the following devices: /dev/vdb' in summary