From: Roman Haritonov Date: Fri, 19 Apr 2013 06:12:34 +0000 (+0400) Subject: new failing test_requests_in_history_are_not_overridden() X-Git-Tag: 2.0~19^2~9^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=798a1ffdec682fe8b9e0c3386f445ab6e1fd801c;p=services%2Fpython-requests.git new failing test_requests_in_history_are_not_overridden() --- diff --git a/test_requests.py b/test_requests.py index d0d8d9e..fed70d8 100755 --- a/test_requests.py +++ b/test_requests.py @@ -169,6 +169,7 @@ class RequestsTestCase(unittest.TestCase): } ) assert 'foo' not in s.cookies +<<<<<<< HEAD def test_request_cookie_overrides_session_cookie(self): s = requests.session() @@ -188,7 +189,13 @@ class RequestsTestCase(unittest.TestCase): assert r.json()['cookies']['foo'] == 'bar' # Make sure the session cj is still the custom one assert s.cookies is cj - + + def test_requests_in_history_are_not_overridden(self): + resp = requests.get(httpbin('redirect/3')) + urls = [r.url for r in resp.history] + req_urls = [r.request.url for r in resp.history] + self.assertEquals(urls, req_urls) + def test_user_agent_transfers(self): heads = {