Skip to content
Myr

Add failing test case for #1228

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

authored by Miikka Koskinen · committed by Miikka Koskinen · parent 1642996 · Browse files · 1 file+6 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+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:test_requests.py+6 added
116 unmodified lines
117 url = httpbin('cookies/set?foo=bar')118 r = s.get(url)119 self.assertTrue(s.cookies['foo'] == 'bar')120121 def test_cookie_sent_on_redirect(self):122 s = requests.session()123 s.get(httpbin('cookies/set?foo=bar'))124 r = s.get(httpbin('redirect/1')) # redirects to httpbin('get')125 self.assertTrue("Cookie" in r.json()["headers"])126127 def test_user_agent_transfers(self):128129 heads = {130 'User-agent': 'Mozilla/5.0 (github.com/kennethreitz/requests)'
267 unmodified lines