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

Method test_no_content_length2

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

Source from the content-addressed store, hash-verified

430 resp.close()
431
432 def test_no_content_length2(self):
433 req = ClientRequest('head', 'http://python.org', loop=self.loop)
434 resp = req.send(self.transport, self.protocol)
435 self.assertEqual('0', req.headers.get('CONTENT-LENGTH'))
436 self.loop.run_until_complete(req.close())
437 resp.close()
438
439 def test_content_type_auto_header_get(self):
440 req = ClientRequest('get', '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