diff options
| author | papaeye <papaeye@gmail.com> | 2013-05-22 02:20:51 +0900 |
|---|---|---|
| committer | papaeye <papaeye@gmail.com> | 2013-05-22 02:20:51 +0900 |
| commit | 715a57dec888c850d16b767d7cdab9705fda7292 (patch) | |
| tree | 3c878c7bd4dc6bc71e3194bc5a6e3ede78c9b2b6 /test_requests.py | |
| parent | 2aabb71dc8db434122c2e00c9d1313c6f368ce1c (diff) | |
| download | python-requests-715a57dec888c850d16b767d7cdab9705fda7292.tar.gz | |
Fix typo, %t -> %r
Diffstat (limited to 'test_requests.py')
| -rw-r--r-- | test_requests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test_requests.py b/test_requests.py index 2b5f231c..09619fff 100644 --- a/test_requests.py +++ b/test_requests.py @@ -14,6 +14,7 @@ from requests.auth import HTTPDigestAuth from requests.adapters import HTTPAdapter from requests.compat import str, cookielib from requests.cookies import cookiejar_from_dict +from requests.exceptions import InvalidURL, MissingSchema from requests.structures import CaseInsensitiveDict try: @@ -53,7 +54,8 @@ class RequestsTestCase(unittest.TestCase): requests.post def test_invalid_url(self): - self.assertRaises(ValueError, requests.get, 'hiwpefhipowhefopw') + self.assertRaises(MissingSchema, requests.get, 'hiwpefhipowhefopw') + self.assertRaises(InvalidURL, requests.get, 'http://') def test_basic_building(self): req = requests.Request() |
