

def test_filter_non_existing_tenant(self):
    opts = copy.deepcopy(self.opts)
    opts['search_opts_tenant'] = {
        'tenant_id': ['non_existing_tenant_id'],
    }
    self.src_identity.keystone_client.tenants.get.side_effect = keystone_exc.NotFound
    self.assertRaises(exception.AbortMigrationError, self.fake_action.run, **self)

dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/tests/lib/os/actions/test_check_filter.py CheckFilterTestCase.test_filter_non_existing_tenant/VarMisuse@68/100 `opts`->`self`