summaryrefslogtreecommitdiff
path: root/openstackclient/tests/network
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient/tests/network')
-rw-r--r--openstackclient/tests/network/test_common.py7
-rw-r--r--openstackclient/tests/network/v2/fakes.py2
-rw-r--r--openstackclient/tests/network/v2/test_subnet.py1
-rw-r--r--openstackclient/tests/network/v2/test_subnet_pool.py1
4 files changed, 11 insertions, 0 deletions
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()