MCPcopy Index your code
hub / github.com/python/cpython / test_simple1

Method test_simple1

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

Source from the content-addressed store, hash-verified

807
808class SimpleServerTestCase(BaseServerTestCase):
809 def test_simple1(self):
810 try:
811 p = xmlrpclib.ServerProxy(URL)
812 self.assertEqual(p.pow(6,8), 6**8)
813 except (xmlrpclib.ProtocolError, OSError) as e:
814 # ignore failures due to non-blocking socket 'unavailable' errors
815 if not is_unavailable_exception(e):
816 # protocol error; provide additional information in test output
817 self.fail("%s\n%s" % (e, getattr(e, "headers", "")))
818
819 def test_nonascii(self):
820 start_string = 'P\N{LATIN SMALL LETTER Y WITH CIRCUMFLEX}t'

Callers 1

test_dotted_attributeMethod · 0.95

Calls 3

is_unavailable_exceptionFunction · 0.85
assertEqualMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected