

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 (qb.must[0] == q1)

dataset/ETHPy150Open elastic/elasticsearch-dsl-py/test_elasticsearch_dsl/test_query.py test_bool_and_other_appends_other_to_must/VarMisuse@54/70 `q`->`qb`