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

Method test_404

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

Source from the content-addressed store, hash-verified

858 self.fail("%s\n%s" % (e, getattr(e, "headers", "")))
859
860 def test_404(self):
861 # send POST with http.client, it should return 404 header and
862 # 'Not Found' message.
863 with contextlib.closing(http.client.HTTPConnection(ADDR, PORT)) as conn:
864 conn.request('POST', '/this-is-not-valid')
865 response = conn.getresponse()
866
867 self.assertEqual(response.status, 404)
868 self.assertEqual(response.reason, 'Not Found')
869
870 def test_introspection1(self):
871 expected_methods = set(['pow', 'div', 'my_function', 'add', 'têšt',

Callers

nothing calls this directly

Calls 4

closingMethod · 0.80
requestMethod · 0.45
getresponseMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected