MCPcopy
hub / github.com/aio-libs/aiohttp / test_no_content_length

Method test_no_content_length

tests/test_client_request.py:425–430  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

423 gc.collect()
424
425 def test_no_content_length(self):
426 req = ClientRequest('get', 'http://python.org', loop=self.loop)
427 resp = req.send(self.transport, self.protocol)
428 self.assertEqual('0', req.headers.get('CONTENT-LENGTH'))
429 self.loop.run_until_complete(req.close())
430 resp.close()
431
432 def test_no_content_length2(self):
433 req = ClientRequest('head', 'http://python.org', loop=self.loop)

Callers

nothing calls this directly

Calls 5

sendMethod · 0.95
closeMethod · 0.95
ClientRequestClass · 0.90
getMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected