mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
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.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user