

def test_two_queries_make_a_bool():
    q1 = query.Match(f='value1')
    q2 = query.Match(message={
        'query': 'this is a test',
        'opeartor': 'and',
    })
    q = (q1 & q2)
    assert isinstance(q, query.Bool)
    assert ([q1, q1] == q.must)

dataset/ETHPy150Open elastic/elasticsearch-dsl-py/test_elasticsearch_dsl/test_query.py test_two_queries_make_a_bool/VarMisuse@66/92 `q2`->`q1`