projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56b5f02
)
Check the response URL in `test_uppercase_scheme_redirect`
author
David Pursehouse
<david.pursehouse@gmail.com>
Wed, 24 Jul 2013 08:37:35 +0000
(17:37 +0900)
committer
David Pursehouse
<david.pursehouse@gmail.com>
Wed, 24 Jul 2013 08:37:35 +0000
(17:37 +0900)
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.
test_requests.py
patch
|
blob
|
history
diff --git
a/test_requests.py
b/test_requests.py
index 0dae1e290e358961e1ad2f5638b41c5de0bce222..7e3ef56a4f1588ee2a1979e9dc37eb1dbd0be02c 100755
(executable)
--- 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()