'Call `get_discussion_category_map`, and verify that it returns
what is expected.'

def assert_category_map_equals(self, expected, requesting_user=None):

    self.assertEqual(utils.get_discussion_category_map(self.course, (requesting_user or self.user)), expected)
