summaryrefslogtreecommitdiffstats
path: root/tests/test_ipalib
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-07-27 16:38:32 -0400
committerRob Crittenden <rcritten@redhat.com>2010-08-06 15:32:53 -0400
commit35cbbde5bf6e2f38375390fa102ce489191a9450 (patch)
treea66635c6c96352e911ea72c11789e533e5ac5d86 /tests/test_ipalib
parent2d7d047cbf9375a4c75196f13ac1e0c439ae9e8b (diff)
downloadfreeipa-35cbbde5bf6e2f38375390fa102ce489191a9450.tar.gz
freeipa-35cbbde5bf6e2f38375390fa102ce489191a9450.tar.xz
freeipa-35cbbde5bf6e2f38375390fa102ce489191a9450.zip
Fix RPC tests. The method comes back as a unicode from xmlrpclib.
Diffstat (limited to 'tests/test_ipalib')
-rw-r--r--tests/test_ipalib/test_rpc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_ipalib/test_rpc.py b/tests/test_ipalib/test_rpc.py
index a87b65a0b..315523b7f 100644
--- a/tests/test_ipalib/test_rpc.py
+++ b/tests/test_ipalib/test_rpc.py
@@ -128,7 +128,7 @@ def test_xml_dumps():
# Test serializing an RPC request:
data = f(params, 'the_method')
(p, m) = loads(data)
- assert_equal(m, 'the_method')
+ assert_equal(m, u'the_method')
assert type(p) is tuple
assert rpc.xml_unwrap(p) == params
@@ -159,7 +159,7 @@ def test_xml_loads():
# Test un-serializing an RPC request:
data = dumps(wrapped, 'the_method', allow_none=True)
(p, m) = f(data)
- assert_equal(m, 'the_method')
+ assert_equal(m, u'the_method')
assert_equal(p, params)
# Test un-serializing an RPC response: