From: Ian Cordasco Date: Sun, 10 Feb 2013 22:49:49 +0000 (-0500) Subject: And tests X-Git-Tag: v1.2.0~46^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0fb13e0b6c092e1acf96e24cf01a621ea4ef5eac;p=services%2Fpython-requests.git And tests --- diff --git a/test_requests.py b/test_requests.py index 0355a4a..e1317f5 100644 --- a/test_requests.py +++ b/test_requests.py @@ -111,6 +111,11 @@ class RequestsTestCase(unittest.TestCase): r = requests.get(httpbin('get') + '?test=true', params={'q': 'test'}, headers=heads) self.assertEqual(r.status_code, 200) + def test_set_cookie_on_301(self): + url = httpbin('cookies/set/foo/bar') + r = s.get(url) + self.assertTrue(s.cookies['foo'] == 'bar') + def test_user_agent_transfers(self): heads = {