'Verify that discussion_topics is working for HTTP GET.'

def test_get_discussion_topics(self):

    self.create_divided_discussions()
    response = self.get_handler(self.course, handler=views.discussion_topics)
    start_date = response['inline_discussions']['subcategories']['Chapter']['start_date']
    expected_response = {'course_wide_discussions': {'children': [['Topic    B', TYPE_ENTRY]], 'entries': {'Topic    B': {'sort_key': 'A', 'is_divided': True, 'id': topic_name_to_id(self.course, 'Topic    B'), 'start_date': response['course_wide_discussions']['entries']['Topic    B']['start_date']}}}, 'inline_discussions': {'subcategories': {'Chapter': {'subcategories': {}, 'children': [['Discussion', TYPE_ENTRY]], 'entries': {'Discussion': {'sort_key': None, 'is_divided': True, 'id': topic_name_to_id(self.course, 'Topic    A'), 'start_date': start_date}}, 'sort_key': 'Chapter', 'start_date': start_date}}, 'children': [['Chapter', TYPE_SUBCATEGORY]]}}
    self.assertEqual(response, expected_response)
