Merge "Refactor TestCreateNetwork: Split TestCreateNetwork into two classes for identity v2 and v3"

This commit is contained in:
Jenkins 2015-12-05 16:35:21 +00:00 committed by Gerrit Code Review
commit c1e4e25991

@ -72,7 +72,11 @@ class TestNetwork(network_fakes.TestNetworkV2):
self.api = self.app.client_manager.network.api
class TestCreateNetwork(common.TestNetworkBase):
class TestCreateNetworkIdentityV3(TestNetwork):
def setUp(self):
super(TestCreateNetworkIdentityV3, self).setUp()
def test_create_no_options(self):
arglist = [
FAKE_NAME,
@ -174,6 +178,12 @@ class TestCreateNetwork(common.TestNetworkBase):
})
self.assertEqual(FILTERED, result)
class TestCreateNetworkIdentityV2(TestNetwork):
def setUp(self):
super(TestCreateNetworkIdentityV2, self).setUp()
def test_create_with_project_identityv2(self):
arglist = [
"--project", identity_fakes_v2.project_name,