summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit/common/test_command.py
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2023-05-08 11:35:45 +0100
committerStephen Finucane <sfinucan@redhat.com>2023-05-10 10:51:30 +0100
commit7d80f9e9626d14ce2ab60e4b69e3ccd070f31e0d (patch)
tree6498649965c44537669d58b2167b56612cd1490b /openstackclient/tests/unit/common/test_command.py
parent7ca43885c26d9dd7903e7015c0a31f3486730eea (diff)
downloadpython-openstackclient-7d80f9e9626d14ce2ab60e4b69e3ccd070f31e0d.tar.gz
Blacken openstack.common
Black used with the '-l 79 -S' flags. A future change will ignore this commit in git-blame history by adding a 'git-blame-ignore-revs' file. Change-Id: Ifcb3c798666d74d596b8ecb3d6d507f782de7ba5 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'openstackclient/tests/unit/common/test_command.py')
-rw-r--r--openstackclient/tests/unit/common/test_command.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/openstackclient/tests/unit/common/test_command.py b/openstackclient/tests/unit/common/test_command.py
index 4fde5301..f31c7117 100644
--- a/openstackclient/tests/unit/common/test_command.py
+++ b/openstackclient/tests/unit/common/test_command.py
@@ -22,18 +22,18 @@ from openstackclient.tests.unit import utils as test_utils
class FakeCommand(command.Command):
-
def take_action(self, parsed_args):
pass
class TestCommand(test_utils.TestCase):
-
def test_command_has_logger(self):
cmd = FakeCommand(mock.Mock(), mock.Mock())
self.assertTrue(hasattr(cmd, 'log'))
- self.assertEqual('openstackclient.tests.unit.common.test_command.'
- 'FakeCommand', cmd.log.name)
+ self.assertEqual(
+ 'openstackclient.tests.unit.common.test_command.' 'FakeCommand',
+ cmd.log.name,
+ )
def test_validate_os_beta_command_enabled(self):
cmd = FakeCommand(mock.Mock(), mock.Mock())
@@ -45,5 +45,6 @@ class TestCommand(test_utils.TestCase):
cmd.validate_os_beta_command_enabled()
cmd.app.options.os_beta_command = False
- self.assertRaises(exceptions.CommandError,
- cmd.validate_os_beta_command_enabled)
+ self.assertRaises(
+ exceptions.CommandError, cmd.validate_os_beta_command_enabled
+ )