summaryrefslogtreecommitdiff
path: root/tempest_lib/tests/services/identity/v2/test_token_client.py
diff options
context:
space:
mode:
Diffstat (limited to 'tempest_lib/tests/services/identity/v2/test_token_client.py')
-rw-r--r--tempest_lib/tests/services/identity/v2/test_token_client.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tempest_lib/tests/services/identity/v2/test_token_client.py b/tempest_lib/tests/services/identity/v2/test_token_client.py
index cc309c7..f75bef8 100644
--- a/tempest_lib/tests/services/identity/v2/test_token_client.py
+++ b/tempest_lib/tests/services/identity/v2/test_token_client.py
@@ -18,6 +18,7 @@ import httplib2
from oslotest import mockpatch
from tempest_lib.common import rest_client
+from tempest_lib import exceptions
from tempest_lib.services.identity.v2 import token_client
from tempest_lib.tests import base
from tempest_lib.tests import fake_http
@@ -29,6 +30,10 @@ class TestTokenClientV2(base.TestCase):
super(TestTokenClientV2, self).setUp()
self.fake_200_http = fake_http.fake_httplib2(return_type=200)
+ def test_init_without_authurl(self):
+ self.assertRaises(exceptions.IdentityError,
+ token_client.TokenClient, None)
+
def test_auth(self):
token_client_v2 = token_client.TokenClient('fake_url')
post_mock = self.useFixture(mockpatch.PatchObject(