summaryrefslogtreecommitdiff
path: root/openstackclient/tests/common
diff options
context:
space:
mode:
authorBrandon Palm <bapalm@us.ibm.com>2016-02-23 10:38:58 -0600
committerBrandon Palm <bapalm@us.ibm.com>2016-02-23 10:38:58 -0600
commitf49f0fead2933ace4cb85c70bd14d13d0c479e6a (patch)
tree8d3dacfb9fb599c23fdb489ad84daac804cab714 /openstackclient/tests/common
parent02e5b6f41d2b5f026ce1f1f5b7026d5968a7c20f (diff)
downloadpython-openstackclient-f49f0fead2933ace4cb85c70bd14d13d0c479e6a.tar.gz
Fixed a bunch of spacing
Nothing too complicated here. I fixed a bunch of spacing issues that I saw in OSC. Change-Id: I935ab48e7c5bac5f88ecdb3a05f73fb44fc9f41d
Diffstat (limited to 'openstackclient/tests/common')
-rw-r--r--openstackclient/tests/common/test_clientmanager.py2
-rw-r--r--openstackclient/tests/common/test_command.py1
-rw-r--r--openstackclient/tests/common/test_commandmanager.py2
-rw-r--r--openstackclient/tests/common/test_logs.py2
-rw-r--r--openstackclient/tests/common/test_timing.py2
-rw-r--r--openstackclient/tests/common/test_utils.py1
6 files changed, 9 insertions, 1 deletions
diff --git a/openstackclient/tests/common/test_clientmanager.py b/openstackclient/tests/common/test_clientmanager.py
index ef46f61c..2bd9e783 100644
--- a/openstackclient/tests/common/test_clientmanager.py
+++ b/openstackclient/tests/common/test_clientmanager.py
@@ -47,6 +47,7 @@ class Container(object):
class FakeOptions(object):
+
def __init__(self, **kwargs):
for option in auth.OPTIONS_LIST:
setattr(self, option.replace('-', '_'), None)
@@ -71,6 +72,7 @@ class TestClientCache(utils.TestCase):
class TestClientManager(utils.TestCase):
+
def setUp(self):
super(TestClientManager, self).setUp()
self.mock = mock.Mock()
diff --git a/openstackclient/tests/common/test_command.py b/openstackclient/tests/common/test_command.py
index 1b2584bd..7467d9eb 100644
--- a/openstackclient/tests/common/test_command.py
+++ b/openstackclient/tests/common/test_command.py
@@ -19,6 +19,7 @@ from openstackclient.tests import utils as test_utils
class FakeCommand(command.Command):
+
def take_action(self, parsed_args):
pass
diff --git a/openstackclient/tests/common/test_commandmanager.py b/openstackclient/tests/common/test_commandmanager.py
index 37dc90fe..e2b274dc 100644
--- a/openstackclient/tests/common/test_commandmanager.py
+++ b/openstackclient/tests/common/test_commandmanager.py
@@ -20,6 +20,7 @@ from openstackclient.tests import utils
class FakeCommand(object):
+
@classmethod
def load(cls):
return cls
@@ -48,6 +49,7 @@ class FakeCommandManager(commandmanager.CommandManager):
class TestCommandManager(utils.TestCase):
+
def test_add_command_group(self):
mgr = FakeCommandManager('test')
diff --git a/openstackclient/tests/common/test_logs.py b/openstackclient/tests/common/test_logs.py
index a319533a..0386cdfd 100644
--- a/openstackclient/tests/common/test_logs.py
+++ b/openstackclient/tests/common/test_logs.py
@@ -66,6 +66,7 @@ class TestContext(utils.TestCase):
class TestFileFormatter(utils.TestCase):
+
def test_nothing(self):
formatter = logs._FileFormatter()
self.assertEqual(('%(asctime)s.%(msecs)03d %(process)d %(levelname)s '
@@ -93,6 +94,7 @@ class TestFileFormatter(utils.TestCase):
class TestLogConfigurator(utils.TestCase):
+
def setUp(self):
super(TestLogConfigurator, self).setUp()
self.options = mock.Mock()
diff --git a/openstackclient/tests/common/test_timing.py b/openstackclient/tests/common/test_timing.py
index c4c738b2..e33bb7ae 100644
--- a/openstackclient/tests/common/test_timing.py
+++ b/openstackclient/tests/common/test_timing.py
@@ -75,7 +75,7 @@ class TestTiming(utils.TestCommand):
def test_timing_list(self):
self.app.timing_data = [(
timing_url,
- datetime.timedelta(microseconds=timing_elapsed*1000000),
+ datetime.timedelta(microseconds=timing_elapsed * 1000000),
)]
arglist = []
diff --git a/openstackclient/tests/common/test_utils.py b/openstackclient/tests/common/test_utils.py
index da7ce063..95bce458 100644
--- a/openstackclient/tests/common/test_utils.py
+++ b/openstackclient/tests/common/test_utils.py
@@ -250,6 +250,7 @@ class NoUniqueMatch(Exception):
class TestFindResource(test_utils.TestCase):
+
def setUp(self):
super(TestFindResource, self).setUp()
self.name = 'legos'