Skip to content
Myr

redirect history length 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 7e4f7fa · Browse files · 1 file+9 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+9 added−0 removed

  • other:+9 added−0 removed

1 file+9 added−0 removed

modified:test_requests.py+9 added
351 unmodified lines
352 self.assertEquals(rbody.get('form'), dict(test2='foobar',test3='foo'))353 self.assertEquals(rbody.get('data'), '')354355356 def test_redirect_history(self):357 r = requests.get(httpbin('redirect', '3'))358 self.assertEquals(r.status_code, 200)359 self.assertEquals(len(r.history), 3)360361 r = requests.get(httpsbin('redirect', '3'))362 self.assertEquals(r.status_code, 200)363 self.assertEquals(len(r.history), 3)364365if __name__ == '__main__':366 unittest.main()