def test_match_all_or_something_is_match_all():
    q1 = query.MatchAll()
    q2 = query.Match(f=42)

    assert (q1 | q2) not in query.MatchAll()
    assert (q2 | q1) == query.MatchAll()
dataset/ETHPy150Open elastic/elasticsearch-dsl-py/test_elasticsearch_dsl/test_query.py/test_match_all_or_something_is_match_all/operator `==` -> `not in`