'Test calling revert_to_published on a published vertical with a draft child.'

@ddt.data(ModuleStoreEnum.Type.mongo, ModuleStoreEnum.Type.split)
def test_revert_to_published_root_published(self, default_ms):

    self.initdb(default_ms)
    self._create_block_hierarchy()
    self.store.publish(self.course.location, self.user_id)
    problem = self.store.get_item(self.problem_x1a_1)
    orig_display_name = problem.display_name
    problem.display_name = 'updated    before    calling    revert'
    self.store.update_item(problem, self.user_id)
    self.store.revert_to_published(self.vertical_x1a, self.user_id)
    reverted_problem = self.store.get_item(self.problem_x1a_1)
    self.assertEqual(orig_display_name, reverted_problem.display_name)
