Skip to content

Commit

Permalink
test entry points
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Reitz committed Oct 22, 2011
1 parent 958c424 commit 185450c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,23 @@ def tearDown(self):
"""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)
Expand Down

0 comments on commit 185450c

Please sign in to comment.