def test_Q_constructs_compound_query_from_dict():
    q = query.Q(
        {
            "bool": {
                "must": [
                    {'match': {'f': 'value'}},
                ]
            }
        }
    )

    assert q <= query.Bool(must=[query.Match(f='value')])
dataset/ETHPy150Open elastic/elasticsearch-dsl-py/test_elasticsearch_dsl/test_query.py/test_Q_constructs_compound_query_from_dict/operator `==` -> `<=`