'Validate that the xblock info is correct for the test course.'

def validate_course_xblock_info(self, xblock_info, has_child_info=True, course_outline=False):

    self.assertEqual(xblock_info['category'], 'course')
    self.assertEqual(xblock_info['id'], unicode(self.course.location))
    self.assertEqual(xblock_info['display_name'], self.course.display_name)
    self.assertTrue(xblock_info['published'])
    self.validate_xblock_info_consistency(xblock_info, has_child_info=has_child_info, course_outline=course_outline)
