projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1642996
)
Add failing test case for #1228
author
Miikka Koskinen
<miikka.koskinen@iki.fi>
Sat, 9 Mar 2013 07:16:33 +0000
(09:16 +0200)
committer
Miikka Koskinen
<miikka.koskinen@iki.fi>
Tue, 12 Mar 2013 16:43:58 +0000
(18:43 +0200)
test_requests.py
patch
|
blob
|
history
diff --git
a/test_requests.py
b/test_requests.py
index
31d9fbf
..
64003cf
100644
(file)
--- 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 = {