From: David Pursehouse Date: Wed, 24 Jul 2013 08:37:35 +0000 (+0900) Subject: Check the response URL in `test_uppercase_scheme_redirect` X-Git-Tag: 2.0~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82c9aa912efde203080ab33e93725e41d3f28604;p=services%2Fpython-requests.git Check the response URL in `test_uppercase_scheme_redirect` Update the test to check that the URL in the response is the one that we expect, i.e. the one it was supposed to redirect to. --- diff --git a/test_requests.py b/test_requests.py index 0dae1e2..7e3ef56 100755 --- a/test_requests.py +++ b/test_requests.py @@ -558,6 +558,7 @@ class RequestsTestCase(unittest.TestCase): url = "HTTP://" + parts.netloc + parts.path r = requests.get(httpbin('redirect-to'), params={'url': url}) self.assertEqual(r.status_code, 200) + self.assertEqual(r.url.lower(), url.lower()) def test_transport_adapter_ordering(self): s = requests.Session()