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

Function test_http_HEAD

tests/test_client_session.py:177–187  ·  view source on GitHub ↗
(session, params)

Source from the content-addressed store, hash-verified

175
176
177def test_http_HEAD(session, params):
178 with mock.patch("aiohttp.client.ClientSession._request") as patched:
179 session.head("http://head.example.com",
180 params={"x": 2},
181 **params)
182 assert patched.called, "`ClientSession._request` not called"
183 assert list(patched.call_args) == [("HEAD", "http://head.example.com",),
184 dict(
185 params={"x": 2},
186 allow_redirects=False,
187 **params)]
188
189
190def test_http_POST(session, params):

Callers

nothing calls this directly

Calls 2

patchMethod · 0.80
headMethod · 0.80

Tested by

no test coverage detected