diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-11-20 12:41:06 -0700 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-11-20 12:41:06 -0700 |
commit | 75bdea29be8ea53c8e005e9020f3f2d1c7dcf689 (patch) | |
tree | fddef68a6c79664e3ec6da866f4f2830d3d4eb5d /ipalib/util.py | |
parent | cfe4ec2175c42f208ae23401991febb8525bdd9b (diff) | |
download | freeipa-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/util.py b/ipalib/util.py index 60b9409fa..223422fe2 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 |