summaryrefslogtreecommitdiff
path: root/openstackclient/tests/common
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-02-25 20:54:25 +0000
committerGerrit Code Review <review@openstack.org>2016-02-25 20:54:25 +0000
commit6176e802b3a4125e983eba3805f3f90881622bc4 (patch)
tree4a036acde45278cd2c9b22692ab34c220615514d /openstackclient/tests/common
parent43957d602b70ac718f0eab0fa30be5a4f20a5233 (diff)
parentf49f0fead2933ace4cb85c70bd14d13d0c479e6a (diff)
downloadpython-openstackclient-6176e802b3a4125e983eba3805f3f90881622bc4.tar.gz
Merge "Fixed a bunch of spacing"
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'