Merge "Fix several flake8 code style issues in compute tests."

This commit is contained in:
Jenkins
2016-06-24 17:17:40 +00:00
committed by Gerrit Code Review
4 changed files with 12 additions and 12 deletions

View File

@@ -32,11 +32,11 @@ class ComputeAgentTests(test.TestCase):
@classmethod
def setUpClass(cls):
opts = cls.get_show_opts(cls.HEADERS)
raw_output = cls.openstack('compute agent create '
+ cls.OS + ' ' + cls.ARCH + ' '
+ cls.VER + ' ' + cls.URL + ' '
+ cls.MD5HASH + ' ' + cls.HYPER + ' '
+ opts)
raw_output = cls.openstack('compute agent create ' +
cls.OS + ' ' + cls.ARCH + ' ' +
cls.VER + ' ' + cls.URL + ' ' +
cls.MD5HASH + ' ' + cls.HYPER + ' ' +
opts)
# Get agent id because agent can only be deleted by ID
output_list = raw_output.split('\n', 1)
@@ -64,9 +64,9 @@ class ComputeAgentTests(test.TestCase):
url = "http://openstack"
md5hash = hashlib.md5().hexdigest()
raw_output = self.openstack('compute agent set '
+ self.ID + ' ' + ver + ' '
+ url + ' ' + md5hash)
raw_output = self.openstack('compute agent set ' +
self.ID + ' ' + ver + ' ' +
url + ' ' + md5hash)
self.assertEqual('', raw_output)
raw_output = self.openstack('compute agent list')