'Tests discussion topic details against a requested topic id'

def test_topic_id(self):

    topic_id_1 = u'topic_id_1'
    topic_id_2 = u'topic_id_2'
    self.make_discussion_xblock(topic_id_1, u'test_category_1', u'test_target_1')
    self.make_discussion_xblock(topic_id_2, u'test_category_2', u'test_target_2')
    url = u'{}?topic_id=topic_id_1,topic_id_2'.format(self.url)
    response = self.client.get(url)
    self.assert_response_correct(response, 200, {u'non_courseware_topics': [], u'courseware_topics': [{u'children': [{u'children': [], u'id': u'topic_id_1', u'thread_list_url': u'http://testserver/api/discussion/v1/threads/?course_id=x%2Fy%2Fz&topic_id=topic_id_1', u'name': u'test_target_1'}], u'id': None, u'thread_list_url': u'http://testserver/api/discussion/v1/threads/?course_id=x%2Fy%2Fz&topic_id=topic_id_1', u'name': u'test_category_1'}, {u'children': [{u'children': [], u'id': u'topic_id_2', u'thread_list_url': u'http://testserver/api/discussion/v1/threads/?course_id=x%2Fy%2Fz&topic_id=topic_id_2', u'name': u'test_target_2'}], u'id': None, u'thread_list_url': u'http://testserver/api/discussion/v1/threads/?course_id=x%2Fy%2Fz&topic_id=topic_id_2', u'name': u'test_category_2'}]})
