'Check that sequential publishes automatically after deleting a unit'

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

    self.initdb(default_ms)
    test_course = self.store.create_course('test_org', 'test_course', 'test_run', self.user_id)
    sequential = self.store.create_child(self.user_id, test_course.location, 'sequential', 'test_sequential')
    vertical = self.store.create_child(self.user_id, sequential.location, 'vertical', 'test_vertical')
    self.store.publish(sequential.location, self.user_id)
    self.assertFalse(self._has_changes(sequential.location))
    self.store.delete_item(vertical.location, self.user_id)
    self.assertFalse(self._has_changes(sequential.location))
