Merge "Fix some new PEP8 errors found at gate"

This commit is contained in:
Jenkins 2015-03-24 05:49:52 +00:00 committed by Gerrit Code Review
commit b738ee677f
6 changed files with 4 additions and 8 deletions

View File

@ -95,4 +95,4 @@ class KeystoneDomainConstraintTest(testtools.TestCase):
self.assertIsNone(constrain.validate_with_client(client_mock,
'domain_1'))
client_plugin_mock.get_domain_id.assert_called_once_with('domain_1')
client_plugin_mock.get_domain_id.assert_called_once_with('domain_1')

View File

@ -2,8 +2,6 @@
#
# Copyright © 2013 Unitedstack Inc.
#
# Author: Jianing YANG (jianingy@unitedstack.com)
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at

View File

@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2013 eNovance <licensing@enovance.com>
#
# Author: Mehdi Abaakouk <mehdi.abaakouk@enovance.com>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at

View File

@ -192,4 +192,4 @@ class FakeKeystoneClient(object):
if self.context is not None:
return self.context.auth_plugin.get_token(self.session)
else:
return self.token
return self.token

View File

@ -126,4 +126,4 @@ class TestStackValidationFailed(common.HeatTestCase):
self.assertEqual(self.expected, six.text_type(ex))
self.assertEqual(self.called_error, ex.error)
self.assertEqual(self.called_path, ex.path)
self.assertEqual(self.called_msg, ex.error_message)
self.assertEqual(self.called_msg, ex.error_message)

View File

@ -143,7 +143,7 @@ class Client(object):
connection.close()
class RemoteClient():
class RemoteClient(object):
# NOTE(afazekas): It should always get an address instead of server
def __init__(self, server, username, password=None, pkey=None,