summaryrefslogtreecommitdiffstats
path: root/ipalib/util.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-11-20 12:41:06 -0700
committerJason Gerard DeRose <jderose@redhat.com>2008-11-20 12:41:06 -0700
commit75bdea29be8ea53c8e005e9020f3f2d1c7dcf689 (patch)
treefddef68a6c79664e3ec6da866f4f2830d3d4eb5d /ipalib/util.py
parentcfe4ec2175c42f208ae23401991febb8525bdd9b (diff)
downloadfreeipa-75bdea29be8ea53c8e005e9020f3f2d1c7dcf689.tar.gz
freeipa-75bdea29be8ea53c8e005e9020f3f2d1c7dcf689.tar.xz
freeipa-75bdea29be8ea53c8e005e9020f3f2d1c7dcf689.zip
Added test_util.test_round_trip() test that tests use of xmlrpc_wrap() and xmlrpc_unwrap() with dumps(), loads(); fixed a bug in xmlrpc_unwrap()
Diffstat (limited to 'ipalib/util.py')
-rw-r--r--ipalib/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/util.py b/ipalib/util.py
index 60b9409f..223422fe 100644
--- a/ipalib/util.py
+++ b/ipalib/util.py
@@ -116,7 +116,7 @@ def xmlrpc_unwrap(value, encoding='UTF-8'):
if isinstance(value, Binary):
assert type(value.data) is str
return value.data
- assert type(value) in (int, float, bool, NoneType)
+ assert type(value) in (unicode, int, float, bool, NoneType)
return value