From f49f0fead2933ace4cb85c70bd14d13d0c479e6a Mon Sep 17 00:00:00 2001 From: Brandon Palm Date: Tue, 23 Feb 2016 10:38:58 -0600 Subject: Fixed a bunch of spacing Nothing too complicated here. I fixed a bunch of spacing issues that I saw in OSC. Change-Id: I935ab48e7c5bac5f88ecdb3a05f73fb44fc9f41d --- openstackclient/tests/network/test_common.py | 7 +++++++ openstackclient/tests/network/v2/fakes.py | 2 ++ openstackclient/tests/network/v2/test_subnet.py | 1 + openstackclient/tests/network/v2/test_subnet_pool.py | 1 + 4 files changed, 11 insertions(+) (limited to 'openstackclient/tests/network') diff --git a/openstackclient/tests/network/test_common.py b/openstackclient/tests/network/test_common.py index 4700c66a..48608734 100644 --- a/openstackclient/tests/network/test_common.py +++ b/openstackclient/tests/network/test_common.py @@ -46,6 +46,7 @@ def _add_compute_argument(parser): class FakeNetworkAndComputeCommand(common.NetworkAndComputeCommand): + def update_parser_common(self, parser): return _add_common_argument(parser) @@ -63,6 +64,7 @@ class FakeNetworkAndComputeCommand(common.NetworkAndComputeCommand): class FakeNetworkAndComputeLister(common.NetworkAndComputeLister): + def update_parser_common(self, parser): return _add_common_argument(parser) @@ -80,6 +82,7 @@ class FakeNetworkAndComputeLister(common.NetworkAndComputeLister): class FakeNetworkAndComputeShowOne(common.NetworkAndComputeShowOne): + def update_parser_common(self, parser): return _add_common_argument(parser) @@ -97,6 +100,7 @@ class FakeNetworkAndComputeShowOne(common.NetworkAndComputeShowOne): class TestNetworkAndCompute(utils.TestCommand): + def setUp(self): super(TestNetworkAndCompute, self).setUp() @@ -150,18 +154,21 @@ class TestNetworkAndCompute(utils.TestCommand): class TestNetworkAndComputeCommand(TestNetworkAndCompute): + def setUp(self): super(TestNetworkAndComputeCommand, self).setUp() self.cmd = FakeNetworkAndComputeCommand(self.app, self.namespace) class TestNetworkAndComputeLister(TestNetworkAndCompute): + def setUp(self): super(TestNetworkAndComputeLister, self).setUp() self.cmd = FakeNetworkAndComputeLister(self.app, self.namespace) class TestNetworkAndComputeShowOne(TestNetworkAndCompute): + def setUp(self): super(TestNetworkAndComputeShowOne, self).setUp() self.cmd = FakeNetworkAndComputeShowOne(self.app, self.namespace) diff --git a/openstackclient/tests/network/v2/fakes.py b/openstackclient/tests/network/v2/fakes.py index c24410e1..ea35a537 100644 --- a/openstackclient/tests/network/v2/fakes.py +++ b/openstackclient/tests/network/v2/fakes.py @@ -51,11 +51,13 @@ def create_extension(): class FakeNetworkV2Client(object): + def __init__(self, **kwargs): self.extensions = mock.Mock(return_value=[create_extension()]) class TestNetworkV2(utils.TestCommand): + def setUp(self): super(TestNetworkV2, self).setUp() diff --git a/openstackclient/tests/network/v2/test_subnet.py b/openstackclient/tests/network/v2/test_subnet.py index c02dc407..e1e663f4 100644 --- a/openstackclient/tests/network/v2/test_subnet.py +++ b/openstackclient/tests/network/v2/test_subnet.py @@ -20,6 +20,7 @@ from openstackclient.tests import utils as tests_utils class TestSubnet(network_fakes.TestNetworkV2): + def setUp(self): super(TestSubnet, self).setUp() diff --git a/openstackclient/tests/network/v2/test_subnet_pool.py b/openstackclient/tests/network/v2/test_subnet_pool.py index 0ee5a714..c4e3340d 100644 --- a/openstackclient/tests/network/v2/test_subnet_pool.py +++ b/openstackclient/tests/network/v2/test_subnet_pool.py @@ -20,6 +20,7 @@ from openstackclient.tests import utils as tests_utils class TestSubnetPool(network_fakes.TestNetworkV2): + def setUp(self): super(TestSubnetPool, self).setUp() -- cgit v1.2.1