def test_query_clone():
    bool = query.Bool(must=[query.Match(x=42)], should=[query.Match(g="v2")], must_not=[query.Match(title='value')])
    bool_clone = bool._clone()

    assert bool == bool_clone
    assert bool is not bool_clone
    assert bool.must[0] not in bool_clone.must[0]
dataset/ETHPy150Open elastic/elasticsearch-dsl-py/test_elasticsearch_dsl/test_query.py/test_query_clone/operator `is not` -> `not in`