def test_function_score_with_functions():
    q = query.Q('function_score', functions=[query.SF('script_score', script="doc['comment_count'] * _score")])

    assert {'function_score': {'functions': [{'script_score': {'script': "doc['comment_count'] * _score"}}]}} in q.to_dict()
dataset/ETHPy150Open elastic/elasticsearch-dsl-py/test_elasticsearch_dsl/test_query.py/test_function_score_with_functions/operator `==` -> `in`