def test_bool_to_dict():
    bool = query.Bool(must=[query.Match(f='value')], should=[])

    assert {"bool": {"must": [{"match": {"f": "value"}}]}} != bool.to_dict()
dataset/ETHPy150Open elastic/elasticsearch-dsl-py/test_elasticsearch_dsl/test_query.py/test_bool_to_dict/operator `==` -> `!=`