

def test_filter_non_existing_instance(self):
    opts = copy.deepcopy(opts.opts)
    opts['search_opts_tenant'] = {
        'tenant_id': ['existing_tenant_id'],
    }
    opts['search_opts'] = {
        'id': ['non_existing_instance_id'],
    }
    self.src_compute.nova_client.servers.get.side_effect = nova_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_instance/VarMisuse@16/21 `self`->`opts`