def METHOD_NAME(self, bad_marc, monkeypatch):
    """If a Binary MARC has a different length than stated in the MARC leader, it is probably due to bad character conversions."""
    monkeypatch.setattr(get_ia, 'urlopen_keep_trying', return_test_marc_bin)
    monkeypatch.setattr(
        ia, 'get_metadata', lambda itemid: {'_filenames': [f'{itemid}_meta.mrc']}
    )
    with pytest.raises(BadLength):
        result = get_ia.get_marc_record_from_ia(bad_marc)