summaryrefslogtreecommitdiffstats
path: root/tests/test_xmlrpc/test_service_plugin.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2009-01-28 23:21:17 -0700
committerRob Crittenden <rcritten@redhat.com>2009-02-03 15:29:05 -0500
commit0211c76cd0ce614b9c7510315dbadf5336667410 (patch)
tree0dca19c3305db51bbd9eb6503e0ef2f3f4488ffb /tests/test_xmlrpc/test_service_plugin.py
parent5717c9d6689f15c46801f2d251e174fad4ce4748 (diff)
downloadfreeipa-0211c76cd0ce614b9c7510315dbadf5336667410.tar.gz
freeipa-0211c76cd0ce614b9c7510315dbadf5336667410.tar.xz
freeipa-0211c76cd0ce614b9c7510315dbadf5336667410.zip
Fixed some of the test_xmlrpc unit tests
Diffstat (limited to 'tests/test_xmlrpc/test_service_plugin.py')
-rw-r--r--tests/test_xmlrpc/test_service_plugin.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_xmlrpc/test_service_plugin.py b/tests/test_xmlrpc/test_service_plugin.py
index 1390d34ea..2a3c90ba9 100644
--- a/tests/test_xmlrpc/test_service_plugin.py
+++ b/tests/test_xmlrpc/test_service_plugin.py
@@ -24,15 +24,15 @@ Test the `ipalib/plugins/f_service` module.
import sys
from xmlrpc_test import XMLRPC_test
from ipalib import api
-from ipalib import errors
+from ipalib import errors2
class test_Service(XMLRPC_test):
"""
Test the `f_service` plugin.
"""
- principal='HTTP/ipatest.%s@%s' % (api.env.domain, api.env.realm)
- hostprincipal='host/ipatest.%s@%s' % (api.env.domain, api.env.realm)
+ principal=u'HTTP/ipatest.%s@%s' % (api.env.domain, api.env.realm)
+ hostprincipal=u'host/ipatest.%s@%s' % (api.env.domain, api.env.realm)
kw={'principal':principal}
def test_add(self):
@@ -60,7 +60,7 @@ class test_Service(XMLRPC_test):
"""
Test adding a malformed principal ('foo').
"""
- kw={'principal':'foo'}
+ kw={'principal': u'foo'}
try:
res = api.Command['service_add'](**kw)
except errors2.MalformedServicePrincipal:
@@ -72,7 +72,7 @@ class test_Service(XMLRPC_test):
"""
Test adding a malformed principal ('HTTP/foo@FOO.NET').
"""
- kw={'principal':'HTTP/foo@FOO.NET'}
+ kw={'principal': u'HTTP/foo@FOO.NET'}
try:
res = api.Command['service_add'](**kw)
except errors2.RealmMismatch: