diff Lib/test/test_xmlrpc.py @ 72451:5ceab07bcd02 3.2

Issue #12931: Add a test with Unicode URI to test_xmlrpc
author Victor Stinner <victor.stinner@haypocalc.com>
date Fri, 23 Sep 2011 01:29:44 +0200
parents 3c9232a684ae
children e19ccbbe70dd
line wrap: on
line diff
--- a/Lib/test/test_xmlrpc.py	Wed Sep 21 22:03:58 2011 +0200
+++ b/Lib/test/test_xmlrpc.py	Fri Sep 23 01:29:44 2011 +0200
@@ -584,6 +584,10 @@
         # This avoids waiting for the socket timeout.
         self.test_simple1()
 
+    def test_unicode_host(self):
+        server = xmlrpclib.ServerProxy("http://%s:%d/RPC2" % (ADDR, PORT))
+        self.assertEqual(server.add("a", "\xe9"), "a\xe9")
+
 class MultiPathServerTestCase(BaseServerTestCase):
     threadFunc = staticmethod(http_multi_server)
     request_count = 2