def test_bool_with_only_should_will_append_another_query_with_or():
    qb = query.Bool(should=[query.Match(f='v')])
    q = query.Match(g=42)

    assert (q | qb) == query.Bool(should=[query.Match(f='v'), q])
dataset/ETHPy150Open elastic/elasticsearch-dsl-py/test_elasticsearch_dsl/test_query.py/test_bool_with_only_should_will_append_another_query_with_or/original