(self)
| 834 | |
| 835 | @unittest.expectedFailure # TODO: RUSTPYTHON |
| 836 | def test_client_encoding(self): |
| 837 | start_string = '\u20ac' |
| 838 | end_string = '\xa4' |
| 839 | |
| 840 | try: |
| 841 | p = xmlrpclib.ServerProxy(URL, encoding='iso-8859-15') |
| 842 | self.assertEqual(p.add(start_string, end_string), |
| 843 | start_string + end_string) |
| 844 | except (xmlrpclib.ProtocolError, socket.error) as e: |
| 845 | # ignore failures due to non-blocking socket unavailable errors. |
| 846 | if not is_unavailable_exception(e): |
| 847 | # protocol error; provide additional information in test output |
| 848 | self.fail("%s\n%s" % (e, getattr(e, "headers", ""))) |
| 849 | |
| 850 | def test_nonascii_methodname(self): |
| 851 | try: |
nothing calls this directly
no test coverage detected