'Ensure we handle missing volume for a backup.'

@ddt.data(KeyError, exception.VolumeNotFound)
def test_cleanup_temp_volumes_snapshots_for_one_backup_volume_not_found(self, err):

    mock_volume_get = self.mock_object(db, 'volume_get')
    mock_volume_get.side_effect = [err]
    backup = self._create_backup_db_entry(status=fields.BackupStatus.CREATING)
    self.assertIsNone(self.backup_mgr._cleanup_temp_volumes_snapshots_for_one_backup(self.ctxt, backup))
