summaryrefslogtreecommitdiff
path: root/glanceclient/tests/unit/test_http.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-04-20 17:13:16 +0000
committerGerrit Code Review <review@openstack.org>2016-04-20 17:13:16 +0000
commit9ffebbb25ed50d5abc12c56226b28ddedb11d278 (patch)
tree3239ec3a8aac1cebd704766ab95a6c2a048ae8d4 /glanceclient/tests/unit/test_http.py
parentda22122450d61abb5c2ce77f0177209baefefa54 (diff)
parentcd5925bc60a5298ecc7182bf058a1b3a5bec30cf (diff)
downloadpython-glanceclient-9ffebbb25ed50d5abc12c56226b28ddedb11d278.tar.gz
Merge "Enable hacking checks"
Diffstat (limited to 'glanceclient/tests/unit/test_http.py')
-rw-r--r--glanceclient/tests/unit/test_http.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/glanceclient/tests/unit/test_http.py b/glanceclient/tests/unit/test_http.py
index 2182f85..9443732 100644
--- a/glanceclient/tests/unit/test_http.py
+++ b/glanceclient/tests/unit/test_http.py
@@ -160,7 +160,7 @@ class TestClient(testtools.TestCase):
self.assertTrue('Accept-Language' not in headers)
def test_connection_timeout(self):
- """Should receive an InvalidEndpoint if connection timeout."""
+ """Verify a InvalidEndpoint is received if connection times out."""
def cb(request, context):
raise requests.exceptions.Timeout
@@ -172,11 +172,9 @@ class TestClient(testtools.TestCase):
self.assertIn(self.endpoint, comm_err.message)
def test_connection_refused(self):
- """
+ """Verify a CommunicationError is received if connection is refused.
- Should receive a CommunicationError if connection refused.
- And the error should list the host and port that refused the
- connection
+ The error should list the host and port that refused the connection.
"""
def cb(request, context):
raise requests.exceptions.ConnectionError()