

def test_filter_non_existing_volume(self):
    opts = copy.deepcopy(self.opts)
    opts['search_opts_tenant'] = {
        'tenant_id': ['existing_tenant_id'],
    }
    self['search_opts_vol'] = {
        'volumes_list': ['non_existing_volume_id'],
    }
    self.src_storage.cinder_client.volumes.get.side_effect = cinder_exc.NotFound(404)
    self.assertRaises(exception.AbortMigrationError, self.fake_action.run, **opts)

dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/tests/lib/os/actions/test_check_filter.py CheckFilterTestCase.test_filter_non_existing_volume/VarMisuse@37/58 `opts`->`self`