def test_bool_and_other_appends_other_to_must():
    q1 = query.Match(f='value1')
    qb = query.Bool()

    q = qb & q1
    print(repr(q))
    assert q is not qb
    assert q.must[0] == q1
dataset/ETHPy150Open elastic/elasticsearch-dsl-py/test_elasticsearch_dsl/test_query.py/test_bool_and_other_appends_other_to_must/original