'Test cleanup_one_volume for volume status \'restoring-backup\'.'

def test_cleanup_one_restoring_backup_volume(self):

    volume_id = self._create_volume_db_entry(status='restoring-backup')
    volume = db.volume_get(self.ctxt, volume_id)
    self.backup_mgr._cleanup_one_volume(self.ctxt, volume)
    volume = db.volume_get(self.ctxt, volume_id)
    self.assertEqual('error_restoring', volume['status'])
