summaryrefslogtreecommitdiff
path: root/keystoneclient/tests
diff options
context:
space:
mode:
authorAnh Tran <anhtt@vn.fujitsu.com>2016-09-27 10:46:20 +0700
committerAnh Tran <anhtt@vn.fujitsu.com>2016-09-27 10:46:20 +0700
commit4aa20fcece4adf8138aad8668afa55248563c94f (patch)
tree3e0b277377f5383b4f7b22c6d98ac373935e3d0b /keystoneclient/tests
parentec930d1b326321639f332289ba0ab41f690b3887 (diff)
downloadpython-keystoneclient-4aa20fcece4adf8138aad8668afa55248563c94f.tar.gz
Import module instead of object
Change-Id: I17dbbd1ca4b940596c913d58a11bd83f19993bb6
Diffstat (limited to 'keystoneclient/tests')
-rw-r--r--keystoneclient/tests/functional/v3/test_roles.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/keystoneclient/tests/functional/v3/test_roles.py b/keystoneclient/tests/functional/v3/test_roles.py
index 88c4603..d2bc7a2 100644
--- a/keystoneclient/tests/functional/v3/test_roles.py
+++ b/keystoneclient/tests/functional/v3/test_roles.py
@@ -13,7 +13,7 @@
import uuid
from keystoneauth1.exceptions import http
-from keystoneclient.exceptions import ValidationError
+from keystoneclient import exceptions
from keystoneclient.tests.functional import base
from keystoneclient.tests.functional.v3 import client_fixtures as fixtures
@@ -88,7 +88,7 @@ class RolesTestCase(base.V3ClientTestCase):
# Only filter in role grants for a user on a resource.
# Domain or project should be specified.
- self.assertRaises(ValidationError,
+ self.assertRaises(exceptions.ValidationError,
self.client.roles.list,
user=user.id)
@@ -97,7 +97,7 @@ class RolesTestCase(base.V3ClientTestCase):
group = fixtures.Group(self.client, self.project_domain_id)
self.useFixture(group)
- self.assertRaises(ValidationError,
+ self.assertRaises(exceptions.ValidationError,
self.client.roles.list,
group=group.id)
@@ -140,7 +140,7 @@ class RolesTestCase(base.V3ClientTestCase):
# Only grant role to a group on a resource.
# Domain or project must be specified.
- self.assertRaises(ValidationError,
+ self.assertRaises(exceptions.ValidationError,
self.client.roles.grant,
role.id,
user=user.id)
@@ -150,7 +150,7 @@ class RolesTestCase(base.V3ClientTestCase):
# Only grant role to a group on a resource.
# Domain or project must be specified.
- self.assertRaises(ValidationError,
+ self.assertRaises(exceptions.ValidationError,
self.client.roles.grant,
role.id,
group=group.id)