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

def validate_chapter_xblock_info(self, xblock_info, has_child_info=True):

    self.assertEqual(xblock_info['category'], 'chapter')
    self.assertEqual(xblock_info['id'], unicode(self.chapter.location))
    self.assertEqual(xblock_info['display_name'], 'Week    1')
    self.assertTrue(xblock_info['published'])
    self.assertIsNone(xblock_info.get('edited_by', None))
    self.assertEqual(xblock_info['course_graders'], ['Homework', 'Lab', 'Midterm    Exam', 'Final    Exam'])
    self.assertEqual(xblock_info['start'], '2030-01-01T00:00:00Z')
    self.assertEqual(xblock_info['graded'], False)
    self.assertEqual(xblock_info['due'], None)
    self.assertEqual(xblock_info['format'], None)
    self.validate_xblock_info_consistency(xblock_info, has_child_info=has_child_info)
