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

def validate_vertical_xblock_info(self, xblock_info):

    self.assertEqual(xblock_info['category'], 'vertical')
    self.assertEqual(xblock_info['id'], unicode(self.vertical.location))
    self.assertEqual(xblock_info['display_name'], 'Unit    1')
    self.assertTrue(xblock_info['published'])
    self.assertEqual(xblock_info['edited_by'], 'testuser')
    ancestor_info = xblock_info.get('ancestor_info', None)
    self.assertIsNotNone(ancestor_info)
    ancestors = ancestor_info['ancestors']
    self.assertEqual(len(ancestors), 3)
    self.validate_sequential_xblock_info(ancestors[0], has_child_info=True)
    self.validate_chapter_xblock_info(ancestors[1], has_child_info=False)
    self.validate_course_xblock_info(ancestors[2], has_child_info=False)
    self.validate_xblock_info_consistency(xblock_info, has_child_info=True, has_ancestor_info=True)
