'Mocks search response as returned by search engine'

def _get_search_response(self, field_dictionary=None):

    target_type = field_dictionary.get('problem_types')
    matched_block_locations = [key for (key, problem_types) in self.problem_type_lookup.items() if (target_type in problem_types)]
    return {'results': [{'data': {'id': str(location)}} for location in matched_block_locations]}
