def assert_matches_have(matches, terms):
    assert len(matches) == len(terms)
    for match, term in zip(matches, terms):
        assert match in term[0]
        assert match[term[0]] == term[1]
dataset/ETHPy150Open Yelp/elastalert/tests/rules_test.py/assert_matches_have/swapped operands of `in`