Pin pep8 to 1.3.3
Standardize pep8 to 1.3.3 and cleared up any errors found by pep8 tests. Change-Id: Ib7eb97d0789556d1676ccad58b5d3364065b7d15 Signed-off-by: Chuck Short <chuck.short@canonical.com>
This commit is contained in:
committed by
Brian Waldon
parent
e1955434b7
commit
c0ec97f310
+5
-5
@@ -37,10 +37,10 @@ class TestClient(unittest.TestCase):
|
||||
m = mox.Mox()
|
||||
m.StubOutWithMock(httplib.HTTPConnection, 'request')
|
||||
httplib.HTTPConnection.request(
|
||||
mox.IgnoreArg(),
|
||||
mox.IgnoreArg(),
|
||||
headers=mox.IgnoreArg(),
|
||||
).AndRaise(socket.error())
|
||||
mox.IgnoreArg(),
|
||||
mox.IgnoreArg(),
|
||||
headers=mox.IgnoreArg(),
|
||||
).AndRaise(socket.error())
|
||||
m.ReplayAll()
|
||||
try:
|
||||
client.json_request('GET', '/v1/images/detail?limit=20')
|
||||
@@ -51,7 +51,7 @@ class TestClient(unittest.TestCase):
|
||||
self.fail('An exception should have bypassed this line.')
|
||||
except exc.CommunicationError, comm_err:
|
||||
fail_msg = ("Exception message '%s' should contain '%s'" %
|
||||
(comm_err.message, endpoint))
|
||||
(comm_err.message, endpoint))
|
||||
self.assertTrue(endpoint in comm_err.message, fail_msg)
|
||||
finally:
|
||||
m.UnsetStubs()
|
||||
|
||||
@@ -174,7 +174,7 @@ fixtures = {
|
||||
'DELETE': ({}, None),
|
||||
},
|
||||
'/v1/images/2': {
|
||||
'HEAD': (
|
||||
'HEAD': (
|
||||
{
|
||||
'x-image-meta-id': '2'
|
||||
},
|
||||
@@ -188,7 +188,7 @@ fixtures = {
|
||||
),
|
||||
},
|
||||
'/v1/images/3': {
|
||||
'HEAD': (
|
||||
'HEAD': (
|
||||
{
|
||||
'x-image-meta-id': '3'
|
||||
},
|
||||
|
||||
@@ -43,7 +43,7 @@ fixtures = {
|
||||
{},
|
||||
{
|
||||
'images': [
|
||||
{
|
||||
{
|
||||
'id': '3a4560a1-e585-443e-9b39-553b46ec92d1',
|
||||
'name': 'image-1',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user