'Tests that an published unit with an unpublished draft remains published across export and re-import.'

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

    with self._build_store(default_ms) as (contentstore, source_course_key):
        chapter = self.store.create_child(self.user_id, self.course.location, 'chapter', block_id='section_one')
        self.store.publish(chapter.location, self.user_id)
        sequential = self.store.create_child(self.user_id, chapter.location, 'sequential', block_id='subsection_one')
        self.store.publish(sequential.location, self.user_id)
        vertical = self.store.create_child(self.user_id, sequential.location, 'vertical', block_id='moon_unit')
        self.assertTrue(self._has_changes(chapter.location))
        self.assertTrue(self._has_changes(sequential.location))
        self.assertTrue(self._has_changes(vertical.location))
        self._export_import_course_round_trip(self.store, contentstore, source_course_key, self.export_dir)
        self.assertTrue(self._has_changes(chapter.location))
        self.assertTrue(self._has_changes(sequential.location))
        self.assertTrue(self._has_changes(vertical.location))
