From: Miikka Koskinen Date: Sat, 9 Mar 2013 07:16:33 +0000 (+0200) Subject: Add failing test case for #1228 X-Git-Tag: v1.2.0~18^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e958511df085ace98cfcc45c69129553ba07ee9e;p=services%2Fpython-requests.git Add failing test case for #1228 --- diff --git a/test_requests.py b/test_requests.py index 31d9fbf..64003cf 100644 --- a/test_requests.py +++ b/test_requests.py @@ -118,6 +118,12 @@ class RequestsTestCase(unittest.TestCase): r = s.get(url) self.assertTrue(s.cookies['foo'] == 'bar') + def test_cookie_sent_on_redirect(self): + s = requests.session() + s.get(httpbin('cookies/set?foo=bar')) + r = s.get(httpbin('redirect/1')) # redirects to httpbin('get') + self.assertTrue("Cookie" in r.json()["headers"]) + def test_user_agent_transfers(self): heads = {