'Returns the URL for the thread_list_url field, given a list of topic_ids'

def get_thread_list_url(self, topic_id_list):

    path = 'http://testserver/api/discussion/v1/threads/'
    query_list = ([('course_id', unicode(self.course.id))] + [('topic_id', topic_id) for topic_id in topic_id_list])
    return urlunparse(('', '', path, '', urlencode(query_list), ''))
