summaryrefslogtreecommitdiffstats
path: root/tests/test_ipaserver
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2009-01-16 01:47:03 -0700
committerJason Gerard DeRose <jderose@redhat.com>2009-01-16 01:47:03 -0700
commitf2e479c33e84367f29d5063dc00c80c49f25f3c9 (patch)
treef88926fa5b6c3de464189e115a490770e9dd8986 /tests/test_ipaserver
parent0227a129496acf4be48f0d5821fb9f602643feac (diff)
downloadfreeipa-f2e479c33e84367f29d5063dc00c80c49f25f3c9.zip
freeipa-f2e479c33e84367f29d5063dc00c80c49f25f3c9.tar.gz
freeipa-f2e479c33e84367f29d5063dc00c80c49f25f3c9.tar.xz
rpcserver now uses xml_dumps() and xml_loads() functions
Diffstat (limited to 'tests/test_ipaserver')
-rw-r--r--tests/test_ipaserver/test_rpcserver.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/test_ipaserver/test_rpcserver.py b/tests/test_ipaserver/test_rpcserver.py
index 52db611..48c1d36 100644
--- a/tests/test_ipaserver/test_rpcserver.py
+++ b/tests/test_ipaserver/test_rpcserver.py
@@ -23,7 +23,7 @@ Test the `ipaserver.rpc` module.
from tests.util import create_test_api, raises, PluginTester
from tests.data import unicode_str
-from ipalib import errors, Command
+from ipalib import errors2, Command
from ipaserver import rpcserver
@@ -41,21 +41,20 @@ def test_params_2_args_options():
assert f((options,) + args) == ((options,) + args, dict())
-class test_xmlrpc(PluginTester):
+class test_xmlserver(PluginTester):
"""
- Test the `ipaserver.rpcserver.xmlrpc` plugin.
+ Test the `ipaserver.rpcserver.xmlserver` plugin.
"""
- _plugin = rpcserver.xmlrpc
+ _plugin = rpcserver.xmlserver
def test_dispatch(self):
"""
- Test the `ipaserver.rpcserver.xmlrpc.dispatch` method.
+ Test the `ipaserver.rpcserver.xmlserver.dispatch` method.
"""
(o, api, home) = self.instance('Backend', in_server=True)
- e = raises(errors.CommandError, o.dispatch, 'echo', tuple())
- assert str(e) == "Unknown command 'echo'"
- assert e.kw['name'] == 'echo'
+ e = raises(errors2.CommandError, o.dispatch, 'echo', tuple())
+ assert e.name == 'echo'
class echo(Command):
takes_args = ['arg1', 'arg2+']