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

Method test_simple1

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

Source from the content-addressed store, hash-verified

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

Callers 1

test_dotted_attributeMethod · 0.95

Calls 4

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

Tested by

no test coverage detected