def test_format_search_results_should_include_is_quick(self, is_quick): is_quick.return_value = True self.es_formatted_response[0]['is_quick'] = True self.assertEqual(format_search_results(self.es_raw_response, "name of the first result", self.response_fields), self.es_formatted_response)
def test_format_search_results_should_process_es_response(self): self.assertEqual(format_search_results(self.es_raw_response, "", self.response_fields), self.es_formatted_response)