def test_select_single_match_error(): with pytest.raises(ValueError): assert bwkr.select_single_match([{}, {}])
def test_select_single_match(matches, expected): assert bwkr.select_single_match(matches) == expected