From 75bdea29be8ea53c8e005e9020f3f2d1c7dcf689 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Thu, 20 Nov 2008 12:41:06 -0700 Subject: 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() --- ipalib/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/util.py') 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 -- cgit