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:
ee36baf
)
Added test for Request.sent.
author
Kenneth Reitz
<me@kennethreitz.com>
Sun, 27 Nov 2011 16:24:59 +0000
(11:24 -0500)
committer
Kenneth Reitz
<me@kennethreitz.com>
Sun, 27 Nov 2011 16:24:59 +0000
(11:24 -0500)
#291
test_requests.py
patch
|
blob
|
history
diff --git
a/test_requests.py
b/test_requests.py
index
7e4f146
..
2ee250b
100755
(executable)
--- a/
test_requests.py
+++ b/
test_requests.py
@@
-51,7
+51,7
@@
class RequestsTestSuite(unittest.TestCase):
self.httpbin = c
_httpbin = True
- time.sleep(1)
+ time.sleep(
.0
1)
@@
-81,6
+81,11
@@
class RequestsTestSuite(unittest.TestCase):
r = requests.get(httpbin('/get'))
self.assertEqual(r.status_code, 200)
+ def test_response_sent(self):
+ r = requests.get(httpbin('/get'))
+
+ self.assertTrue(r.request.sent)
+
def test_HTTP_302_ALLOW_REDIRECT_GET(self):
r = requests.get(httpbin('redirect', '1'))
self.assertEqual(r.status_code, 200)