(session, params)
| 175 | |
| 176 | |
| 177 | def 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 | |
| 190 | def test_http_POST(session, params): |