Skip to content
Myr

danger_mode redirect test

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 124c172 · Browse files · 1 file+6 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+6 added−0 removed

  • tests:+6 added−0 removed

1 file+6 added−0 removed

modified:tests/test_requests.py+6 added
787 unmodified lines
788 requests.get(httpbin('headers'), headers={'Foo': None})789 except TypeError:790 self.fail()791792 def test_danger_mode_redirects(self):793 s = requests.session()794 s.config['danger_mode'] = True795 s.get(httpbin('redirect', '4'))796797798if __name__ == '__main__':799 unittest.main()