Skip to content
Myr

Added test for Request.sent.

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

#291

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

  • other:+6 added−1 removed

1 file+6 added−1 removed

modified:test_requests.py+6 added-1 removed
49 unmodified lines
50 c = envoy.connect('gunicorn httpbin:app --bind=0.0.0.0:%s' % (PORT))5152 self.httpbin = c53 _httpbin = True54 time.sleep(1)54 time.sleep(.01)55565758 def tearDown(self):
21 unmodified lines
80 def test_HTTP_200_OK_GET(self):81 r = requests.get(httpbin('/get'))82 self.assertEqual(r.status_code, 200)8384 def test_response_sent(self):85 r = requests.get(httpbin('/get'))8687 self.assertTrue(r.request.sent)8889 def test_HTTP_302_ALLOW_REDIRECT_GET(self):90 r = requests.get(httpbin('redirect', '1'))91 self.assertEqual(r.status_code, 200)92
495 unmodified lines