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:
c6a1167
)
Add test for invalid port
author
Ian Cordasco
<ian.cordasco@rackspace.com>
Fri, 29 Aug 2014 21:50:45 +0000
(16:50 -0500)
committer
Ian Cordasco
<ian.cordasco@rackspace.com>
Fri, 29 Aug 2014 21:50:45 +0000
(16:50 -0500)
test_requests.py
patch
|
blob
|
history
diff --git
a/test_requests.py
b/test_requests.py
index 3868f9dc1f7da132c59d08e4aad1a81164443d64..2ff61248b5fd6f1009a08f53b63699dbd575b9df 100755
(executable)
--- a/
test_requests.py
+++ b/
test_requests.py
@@
-291,6
+291,9
@@
class RequestsTestCase(unittest.TestCase):
with pytest.raises(ConnectionError):
requests.get("http://fooobarbangbazbing.httpbin.org")
+ with pytest.raises(ConnectionError):
+ requests.get("http://httpbin.org:1")
+
def test_basicauth_with_netrc(self):
auth = ('user', 'pass')
wrong_auth = ('wronguser', 'wrongpass')