#NEWLINE# @ mock . patch ( 'elasticsearch.client.Elasticsearch.search' ) #NEWLINE# def test_search_supports_query_string_parameters( self , search_mock ) : #NEWLINE# #INDENT# search_mock . return_value = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# query = { #NEWLINE# #INDENT# 'match_all' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . app . post ( '/models/test/search/?size=100' , search_mock , headers = self . headers , status = 200 ) #NEWLINE# search_mock . called_with ( index = 'test' , doc_type = 'test' , body = query , size = 100 )