(session, params)
| 162 | |
| 163 | |
| 164 | def test_http_OPTIONS(session, params): |
| 165 | with mock.patch("aiohttp.client.ClientSession._request") as patched: |
| 166 | session.options("http://opt.example.com", |
| 167 | params={"x": 2}, |
| 168 | **params) |
| 169 | assert patched.called, "`ClientSession._request` not called" |
| 170 | assert list(patched.call_args) == [("OPTIONS", "http://opt.example.com",), |
| 171 | dict( |
| 172 | params={"x": 2}, |
| 173 | allow_redirects=True, |
| 174 | **params)] |
| 175 | |
| 176 | |
| 177 | def test_http_HEAD(session, params): |