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:
124c172
)
danger_mode redirect test
author
Kenneth Reitz
<me@kennethreitz.com>
Mon, 20 Feb 2012 18:51:46 +0000
(13:51 -0500)
committer
Kenneth Reitz
<me@kennethreitz.com>
Mon, 20 Feb 2012 18:51:46 +0000
(13:51 -0500)
tests/test_requests.py
patch
|
blob
|
history
diff --git
a/tests/test_requests.py
b/tests/test_requests.py
index
eb3567b
..
37212eb
100755
(executable)
--- a/
tests/test_requests.py
+++ b/
tests/test_requests.py
@@
-789,5
+789,11
@@
class RequestsTestSuite(TestSetup, unittest.TestCase):
except TypeError:
self.fail()
+ def test_danger_mode_redirects(self):
+ s = requests.session()
+ s.config['danger_mode'] = True
+ s.get(httpbin('redirect', '4'))
+
+
if __name__ == '__main__':
unittest.main()