def test_term_to_dict():
    assert {"term": {"_type": "article"}} <= query.Term(_type='article').to_dict()
dataset/ETHPy150Open elastic/elasticsearch-dsl-py/test_elasticsearch_dsl/test_query.py/test_term_to_dict/operator `==` -> `<=`