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

Method test_send_blank

Lib/test/test_httpservers.py:259–264  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

257 self.assertEqual(res.status, HTTPStatus.HTTP_VERSION_NOT_SUPPORTED)
258
259 def test_send_blank(self):
260 self.con._http_vsn_str = ''
261 self.con.putrequest('', '')
262 self.con.endheaders()
263 res = self.con.getresponse()
264 self.assertEqual(res.status, HTTPStatus.BAD_REQUEST)
265
266 def test_header_close(self):
267 self.con.putrequest('GET', '/')

Callers

nothing calls this directly

Calls 4

putrequestMethod · 0.80
endheadersMethod · 0.80
getresponseMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected