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:
958c424
)
test entry points
author
Kenneth Reitz
<me@kennethreitz.com>
Sat, 22 Oct 2011 23:40:45 +0000
(19:40 -0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Sat, 22 Oct 2011 23:40:45 +0000
(19:40 -0400)
test_requests.py
patch
|
blob
|
history
diff --git
a/test_requests.py
b/test_requests.py
index 6360e7ed0f1ed71b3925780f90f0ff7ee698a8f0..f12115717af964b7927c06aa6aef87554c5baafa 100755
(executable)
--- a/
test_requests.py
+++ b/
test_requests.py
@@
-58,11
+58,23
@@
class RequestsTestSuite(unittest.TestCase):
"""Teardown."""
# self.httpbin.kill()
+ def test_entry_points(self):
+ import requests
+
+ requests.session
+ requests.session().get
+ requests.session().head
+ requests.get
+ requests.head
+ requests.put
+ requests.patch
+ requests.post
+
+
def test_invalid_url(self):
self.assertRaises(ValueError, requests.get, 'hiwpefhipowhefopw')
-
def test_HTTP_200_OK_GET(self):
r = requests.get(httpbin('/get'))
self.assertEqual(r.status_code, 200)