diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_ipalib/test_rpc.py | 2 | ||||
-rw-r--r-- | tests/test_xmlrpc/xmlrpc_test.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_ipalib/test_rpc.py b/tests/test_ipalib/test_rpc.py index 315523b7f..6c1bde48d 100644 --- a/tests/test_ipalib/test_rpc.py +++ b/tests/test_ipalib/test_rpc.py @@ -234,7 +234,7 @@ class test_xmlclient(PluginTester): # Test with an errno the client knows: e = raises(errors.RequirementError, o.forward, 'user_add', *args, **kw) - assert_equal(e.message, u"'four' is required") + assert_equal(e.args[0], u"'four' is required") # Test with an errno the client doesn't know e = raises(errors.UnknownError, o.forward, 'user_add', *args, **kw) diff --git a/tests/test_xmlrpc/xmlrpc_test.py b/tests/test_xmlrpc/xmlrpc_test.py index 1966edf93..1e41bc4e6 100644 --- a/tests/test_xmlrpc/xmlrpc_test.py +++ b/tests/test_xmlrpc/xmlrpc_test.py @@ -42,7 +42,7 @@ fuzzy_uuid = Fuzzy( try: if not api.Backend.xmlclient.isconnected(): - api.Backend.xmlclient.connect() + api.Backend.xmlclient.connect(fallback=False) res = api.Command['user_show'](u'notfound') except errors.NetworkError: server_available = False @@ -103,7 +103,7 @@ class XMLRPC_test(object): 'Server not available: %r' % api.env.xmlrpc_uri ) if not api.Backend.xmlclient.isconnected(): - api.Backend.xmlclient.connect() + api.Backend.xmlclient.connect(fallback=False) def tearDown(self): """ |