def METHOD_NAME(binariescheck):
    output, test = binariescheck
    with FakePkg('fake') as pkg:
        pkgfile = pkg.add_file(get_full_path('opt-dependency'), '/bin/opt-dependency')
        run_elf_checks(test, pkg, pkgfile)
        assert not test.readelf_parser.parsing_failed_reason()
        assert not test.ldd_parser.parsing_failed_reason
        out = output.print_results(output.results)
        assert 'E: linked-against-opt-library /bin/opt-dependency /opt/libfoo.so' in out