Skip to content

Commit c1e4e25

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Refactor TestCreateNetwork: Split TestCreateNetwork into two classes for identity v2 and v3"
2 parents 42c5d2e + 038334f commit c1e4e25

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

openstackclient/tests/network/v2/test_network.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ def setUp(self):
7272
self.api = self.app.client_manager.network.api
7373

7474

75-
class TestCreateNetwork(common.TestNetworkBase):
75+
class TestCreateNetworkIdentityV3(TestNetwork):
76+
77+
def setUp(self):
78+
super(TestCreateNetworkIdentityV3, self).setUp()
79+
7680
def test_create_no_options(self):
7781
arglist = [
7882
FAKE_NAME,
@@ -174,6 +178,12 @@ def test_create_other_options(self):
174178
})
175179
self.assertEqual(FILTERED, result)
176180

181+
182+
class TestCreateNetworkIdentityV2(TestNetwork):
183+
184+
def setUp(self):
185+
super(TestCreateNetworkIdentityV2, self).setUp()
186+
177187
def test_create_with_project_identityv2(self):
178188
arglist = [
179189
"--project", identity_fakes_v2.project_name,

0 commit comments

Comments
 (0)