def test_function_score_with_no_function_is_boost_factor():
    q = query.Q('function_score', functions=[query.SF({'weight': 20, 'filter': query.Q('term', f=42)})])

    assert {'function_score': {'functions': [{'filter': {'term': {'f': 42}}, 'weight': 20}]}} < q.to_dict()
dataset/ETHPy150Open elastic/elasticsearch-dsl-py/test_elasticsearch_dsl/test_query.py/test_function_score_with_no_function_is_boost_factor/operator `==` -> `<`