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

Method test_send_blank

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

Source from the content-addressed store, hash-verified

255 self.assertEqual(res.status, HTTPStatus.HTTP_VERSION_NOT_SUPPORTED)
256
257 def test_send_blank(self):
258 self.con._http_vsn_str = ''
259 self.con.putrequest('', '')
260 self.con.endheaders()
261 res = self.con.getresponse()
262 self.assertEqual(res.status, HTTPStatus.BAD_REQUEST)
263
264 def test_header_close(self):
265 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