(make_request)
| 437 | |
| 438 | |
| 439 | def test_basic_auth(make_request) -> None: |
| 440 | with pytest.warns(DeprecationWarning, match="BasicAuth is deprecated"): |
| 441 | auth = aiohttp.BasicAuth("nkim", "1234") |
| 442 | req = make_request("get", "http://python.org", auth=auth) |
| 443 | assert "AUTHORIZATION" in req.headers |
| 444 | assert "Basic bmtpbToxMjM0" == req.headers["AUTHORIZATION"] |
| 445 | |
| 446 | |
| 447 | def test_basic_auth_utf8(make_request) -> None: |
nothing calls this directly
no test coverage detected