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

Method test_pass_falsy_data

tests/test_client_request.py:500–505  ·  view source on GitHub ↗
(self, _)

Source from the content-addressed store, hash-verified

498 @unittest.mock.patch(
499 'aiohttp.client_reqrep.ClientRequest.update_body_from_data')
500 def test_pass_falsy_data(self, _):
501 req = ClientRequest(
502 'post', 'http://python.org/',
503 data={}, loop=self.loop)
504 req.update_body_from_data.assert_called_once_with({}, frozenset())
505 self.loop.run_until_complete(req.close())
506
507 def test_get_with_data(self):
508 for meth in ClientRequest.GET_METHODS:

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
ClientRequestClass · 0.90

Tested by

no test coverage detected