MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_client_encoding

Method test_client_encoding

Lib/test/test_xmlrpc.py:836–848  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 5

is_unavailable_exceptionFunction · 0.85
getattrFunction · 0.85
assertEqualMethod · 0.45
addMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected