Skip to content
Myr

Check the response URL in `test_uppercase_scheme_redirect`

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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.

authored by David Pursehouse · committed by David Pursehouse · parent 56b5f02 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:test_requests.py+1 added
556 unmodified lines
557 parts = urlparse(httpbin('html'))558 url = "HTTP://" + parts.netloc + parts.path559 r = requests.get(httpbin('redirect-to'), params={'url': url})560 self.assertEqual(r.status_code, 200)561 self.assertEqual(r.url.lower(), url.lower())562563 def test_transport_adapter_ordering(self):564 s = requests.Session()565 order = ['https://', 'http://']
205 unmodified lines