(self, httpbin)
| 429 | assert not s.cookies |
| 430 | |
| 431 | def test_generic_cookiejar_works(self, httpbin): |
| 432 | cj = cookielib.CookieJar() |
| 433 | cookiejar_from_dict({"foo": "bar"}, cj) |
| 434 | s = requests.session() |
| 435 | s.cookies = cj |
| 436 | r = s.get(httpbin("cookies")) |
| 437 | # Make sure the cookie was sent |
| 438 | assert r.json()["cookies"]["foo"] == "bar" |
| 439 | # Make sure the session cj is still the custom one |
| 440 | assert s.cookies is cj |
| 441 | |
| 442 | def test_param_cookiejar_works(self, httpbin): |
| 443 | cj = cookielib.CookieJar() |
nothing calls this directly
no test coverage detected