Skip to content
Myr

test relative redirects

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 bb16fe8 · Browse files · 1 file+8 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+8 added−0 removed

  • other:+8 added−0 removed

1 file+8 added−0 removed

modified:test_requests.py+8 added
444 unmodified lines
445 self.assertEquals(r.status_code, 200)446 self.assertEquals(len(r.history), 3)447448449 def test_relative_redirect_history(self):450451 for service in SERVICES:452453 r = requests.get(service('relative-redirect', '3'))454 self.assertEquals(r.status_code, 200)455 self.assertEquals(len(r.history), 3)456457458if __name__ == '__main__':459 unittest.main()