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:
19756d5
)
test pyopenssl redirect (unit test for #1887)
author
Konstantinos Koukopoulos
<koukopoulos@gmail.com>
Tue, 28 Jan 2014 17:08:16 +0000
(09:08 -0800)
committer
Konstantinos Koukopoulos
<koukopoulos@gmail.com>
Tue, 28 Jan 2014 17:08:16 +0000
(09:08 -0800)
test_requests.py
patch
|
blob
|
history
diff --git
a/test_requests.py
b/test_requests.py
index 63897bb5f81de899a05a567a5c549dc5b8b7cd6f..ee9c7b7881a877d95e32115cd0b322ef2e634ae4 100755
(executable)
--- a/
test_requests.py
+++ b/
test_requests.py
@@
-412,6
+412,9
@@
class RequestsTestCase(unittest.TestCase):
def test_unicode_header_name(self):
requests.put(httpbin('put'), headers={str('Content-Type'): 'application/octet-stream'}, data='\xff') # compat.str is unicode.
+ def test_pyopenssl_redirect(self):
+ requests.get('https://httpbin.org/status/301')
+
def test_urlencoded_get_query_multivalued_param(self):
r = requests.get(httpbin('get'), params=dict(test=['foo', 'baz']))