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

Method test_introspection1

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

Source from the content-addressed store, hash-verified

864 self.assertEqual(response.reason, 'Not Found')
865
866 def test_introspection1(self):
867 expected_methods = set(['pow', 'div', 'my_function', 'add', 'têšt',
868 'system.listMethods', 'system.methodHelp',
869 'system.methodSignature', 'system.multicall',
870 'Fixture'])
871 try:
872 p = xmlrpclib.ServerProxy(URL)
873 meth = p.system.listMethods()
874 self.assertEqual(set(meth), expected_methods)
875 except (xmlrpclib.ProtocolError, OSError) as e:
876 # ignore failures due to non-blocking socket 'unavailable' errors
877 if not is_unavailable_exception(e):
878 # protocol error; provide additional information in test output
879 self.fail("%s\n%s" % (e, getattr(e, "headers", "")))
880
881
882 def test_introspection2(self):

Callers

nothing calls this directly

Calls 4

setFunction · 0.85
is_unavailable_exceptionFunction · 0.85
assertEqualMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected