Skip to content
Myr

added test case related to #1711

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by daftshady · committed by daftshady · parent 2bbd7ba · Browse files · 1 file+8 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−0 removed

  • other:+8 added−0 removed

1 file+8 added−0 removed

modified:test_requests.py+8 added
185 unmodified lines
186 # Make sure the cookie was sent187 assert r.json()['cookies']['foo'] == 'bar'188 # Make sure the session cj is still the custom one189 assert s.cookies is cj190 191 def test_param_cookiejar_works(self):192 cj = cookielib.CookieJar()193 cookiejar_from_dict({'foo' : 'bar'}, cj)194 s = requests.session()195 r = s.get(httpbin('cookies'), cookies=cj)196 # Make sure the cookie was sent197 assert r.json()['cookies']['foo'] == 'bar'198199 def test_requests_in_history_are_not_overridden(self):200 resp = requests.get(httpbin('redirect/3'))201 urls = [r.url for r in resp.history]
721 unmodified lines