(self, httpbin)
| 440 | assert s.cookies is cj |
| 441 | |
| 442 | def test_param_cookiejar_works(self, httpbin): |
| 443 | cj = cookielib.CookieJar() |
| 444 | cookiejar_from_dict({"foo": "bar"}, cj) |
| 445 | s = requests.session() |
| 446 | r = s.get(httpbin("cookies"), cookies=cj) |
| 447 | # Make sure the cookie was sent |
| 448 | assert r.json()["cookies"]["foo"] == "bar" |
| 449 | |
| 450 | def test_cookielib_cookiejar_on_redirect(self, httpbin): |
| 451 | """Tests resolve_redirect doesn't fail when merging cookies |
nothing calls this directly
no test coverage detected