summaryrefslogtreecommitdiff
path: root/keystoneclient/tests/functional/v3/test_projects.py
diff options
context:
space:
mode:
Diffstat (limited to 'keystoneclient/tests/functional/v3/test_projects.py')
-rw-r--r--keystoneclient/tests/functional/v3/test_projects.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/keystoneclient/tests/functional/v3/test_projects.py b/keystoneclient/tests/functional/v3/test_projects.py
index 0fa631d..4b8d749 100644
--- a/keystoneclient/tests/functional/v3/test_projects.py
+++ b/keystoneclient/tests/functional/v3/test_projects.py
@@ -18,15 +18,7 @@ from keystoneclient.tests.functional import base
from keystoneclient.tests.functional.v3 import client_fixtures as fixtures
-class ProjectsTestCase(base.V3ClientTestCase):
-
- def setUp(self):
- super(ProjectsTestCase, self).setUp()
- self.test_domain = fixtures.Domain(self.client)
- self.useFixture(self.test_domain)
-
- self.test_project = fixtures.Project(self.client, self.test_domain.id)
- self.useFixture(self.test_project)
+class ProjectsTestMixin(object):
def check_project(self, project, project_ref=None):
self.assertIsNotNone(project.id)
@@ -51,6 +43,17 @@ class ProjectsTestCase(base.V3ClientTestCase):
self.assertIsNotNone(project.domain_id)
self.assertIsNotNone(project.enabled)
+
+class ProjectsTestCase(base.V3ClientTestCase, ProjectsTestMixin):
+
+ def setUp(self):
+ super(ProjectsTestCase, self).setUp()
+ self.test_domain = fixtures.Domain(self.client)
+ self.useFixture(self.test_domain)
+
+ self.test_project = fixtures.Project(self.client, self.test_domain.id)
+ self.useFixture(self.test_project)
+
def test_create_subproject(self):
project_ref = {
'name': fixtures.RESOURCE_NAME_PREFIX + uuid.uuid4().hex,