def METHOD_NAME(monkeypatch, iso_repoids, should_inhibit):
    create_report_mock = create_report_mocked()
    monkeypatch.setattr(reporting, 'create_report', create_report_mock)
    monkeypatch.setattr(api, 'current_actor', CurrentActorMocked())
    iso_repositories = [CustomTargetRepository(repoid=repoid, baseurl='', name='') for repoid in iso_repoids]
    target_iso_msg = TargetOSInstallationImage(path='',
                                               mountpoint='',
                                               repositories=iso_repositories,
                                               was_mounted_successfully=True)
    check_target_iso.inihibit_if_iso_does_not_contain_basic_repositories(target_iso_msg)
    expected_report_count = 1 if should_inhibit else 0
    assert create_report_mock.called == expected_report_count
    if should_inhibit:
        assert is_inhibitor(create_report_mock.reports[0])