'Test cleanup_one_backup for volume status \'deleting\'.'

def test_cleanup_one_deleting_backup(self):

    self.override_config('backup_service_inithost_offload', False)
    backup = self._create_backup_db_entry(status=fields.BackupStatus.DELETING)
    self.backup_mgr._cleanup_one_backup(self.ctxt, backup)
    self.assertRaises(exception.BackupNotFound, db.backup_get, self.ctxt, backup.id)
