'Test calling revert_to_published on a direct-only item is a no-op.'

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

    self.initdb(default_ms)
    self._create_block_hierarchy()
    num_children = len(self.store.get_item(self.sequential_x1).children)
    self.store.revert_to_published(self.sequential_x1, self.user_id)
    reverted_parent = self.store.get_item(self.sequential_x1)
    self.assertEqual(num_children, len(reverted_parent.children))
