diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-04-20 17:13:16 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-04-20 17:13:16 +0000 |
commit | 9ffebbb25ed50d5abc12c56226b28ddedb11d278 (patch) | |
tree | 3239ec3a8aac1cebd704766ab95a6c2a048ae8d4 /glanceclient/tests/unit/test_http.py | |
parent | da22122450d61abb5c2ce77f0177209baefefa54 (diff) | |
parent | cd5925bc60a5298ecc7182bf058a1b3a5bec30cf (diff) | |
download | python-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.py | 8 |
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() |