'Test calling revert_to_published on vertical with no published version errors.'

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

    self.initdb(default_ms)
    self._create_block_hierarchy()
    with self.assertRaises(InvalidVersionError):
        self.store.revert_to_published(self.vertical_x1a, self.user_id)
