summaryrefslogtreecommitdiffstats
path: root/tests/test_ipalib/test_rpc.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-11-24 21:34:01 -0700
committerJason Gerard DeRose <jderose@redhat.com>2008-11-24 21:34:01 -0700
commit2d458a12339fbb7ef006ff7defc1e2f541e2f23f (patch)
tree04f1b19fe0763c1d0d5671dfee8c328dcd9cd002 /tests/test_ipalib/test_rpc.py
parent237c16f0fd3998f4a2e69d9096997d10af2cf8c9 (diff)
downloadfreeipa-2d458a12339fbb7ef006ff7defc1e2f541e2f23f.tar.gz
freeipa-2d458a12339fbb7ef006ff7defc1e2f541e2f23f.tar.xz
freeipa-2d458a12339fbb7ef006ff7defc1e2f541e2f23f.zip
Stared some RPC-related error cleanup; started work on ipa_server.rcp.xmlrpc plugin
Diffstat (limited to 'tests/test_ipalib/test_rpc.py')
-rw-r--r--tests/test_ipalib/test_rpc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_ipalib/test_rpc.py b/tests/test_ipalib/test_rpc.py
index 14af2bf4e..e8d73931c 100644
--- a/tests/test_ipalib/test_rpc.py
+++ b/tests/test_ipalib/test_rpc.py
@@ -32,10 +32,10 @@ BINARY_BYTES = ''.join(struct.pack('B', d) for d in xrange(256))
assert '\x00' in BINARY_BYTES and '\xff' in BINARY_BYTES
assert type(BINARY_BYTES) is str and len(BINARY_BYTES) == 256
-# A UTF-8 encoded str
+# A UTF-8 encoded str:
UTF8_BYTES = '\xd0\x9f\xd0\xb0\xd0\xb2\xd0\xb5\xd0\xbb'
-# The same UTF-8 data decoded (a unicode instance)
+# The same UTF-8 data decoded (a unicode instance):
UNICODE_CHARS = u'\u041f\u0430\u0432\u0435\u043b'
assert UTF8_BYTES.decode('UTF-8') == UNICODE_CHARS
assert UNICODE_CHARS.encode('UTF-8') == UTF8_BYTES
@@ -60,7 +60,7 @@ def test_round_trip():
Test `ipalib.rpc.xmlrpc_wrap` and `ipalib.rpc.xmlrpc_unwrap`.
This tests the two functions together with ``xmlrpclib.dumps()`` and
- ``xmlrpclib.loads()`` in a full encode/dumps/loads/decode round trip.
+ ``xmlrpclib.loads()`` in a full wrap/dumps/loads/unwrap round trip.
"""
# We first test that our assumptions about xmlrpclib module in the Python
# standard library are correct: