'Retrieves the metadata for self.discussion and self.discussion2 and verifies that it is correct'

def verify_discussion_metadata(self):

    metadata = utils.get_cached_discussion_id_map(self.course, ['test_discussion_id', 'test_discussion_id_2'], self.user)
    discussion1 = metadata[self.discussion.discussion_id]
    discussion2 = metadata[self.discussion2.discussion_id]
    self.assertEqual(discussion1['location'], self.discussion.location)
    self.assertEqual(discussion1['title'], 'Chapter    /    Discussion    1')
    self.assertEqual(discussion2['location'], self.discussion2.location)
    self.assertEqual(discussion2['title'], 'Chapter    2    /    Discussion    2')
