'Register a mock response for GET on the CS thread search endpoint'

def register_get_threads_search_response(self, threads, rewrite, num_pages=1):

    httpretty.register_uri(httpretty.GET, u'http://localhost:4567/api/v1/search/threads', body=json.dumps({u'collection': threads, u'page': 1, u'num_pages': num_pages, u'corrected_text': rewrite, u'thread_count': len(threads)}), status=200)
