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

Method test_invalid_get_response

Lib/test/test_docxmlrpc.py:111–118  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

109 response.read()
110
111 def test_invalid_get_response(self):
112 self.client.request("GET", "/spam")
113 response = self.client.getresponse()
114
115 self.assertEqual(response.status, 404)
116 self.assertEqual(response.getheader("Content-type"), "text/plain")
117
118 response.read()
119
120 def test_lambda(self):
121 """Test that lambda functionality stays the same. The output produced

Callers

nothing calls this directly

Calls 5

getheaderMethod · 0.80
requestMethod · 0.45
getresponseMethod · 0.45
assertEqualMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected