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

Method get

Lib/test/test_xmlrpc.py:1335–1339  ·  view source on GitHub ↗
(self, key, failobj=None)

Source from the content-addressed store, hash-verified

1333# in order to test the _send_traceback_header flag on the server
1334class FailingMessageClass(http.client.HTTPMessage):
1335 def get(self, key, failobj=None):
1336 key = key.lower()
1337 if key == 'content-length':
1338 return 'I am broken'
1339 return super().get(key, failobj)
1340
1341
1342class FailingServerTestCase(unittest.TestCase):

Callers 5

do_POSTMethod · 0.45
is_unavailable_exceptionFunction · 0.45
test_fail_no_infoMethod · 0.45
test_fail_with_infoMethod · 0.45

Calls 2

superClass · 0.85
lowerMethod · 0.45

Tested by

no test coverage detected