Enable hacking checks

Enabled following hacking checks from tox.ini:
- H233 Python 3.x incompatible use of print operator
- H303 no wildcard import
- H404 multi line docstring should start with a summary

Change-Id: I2553bcd3e80c00acc08d135a1d2dadfb6cda49fe
Partial-Bugs: #1475054
This commit is contained in:
Tin Lam
2016-03-25 03:07:45 -05:00
parent 04e1ea73a5
commit cd5925bc60
8 changed files with 29 additions and 40 deletions
+3 -5
View File
@@ -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()