summaryrefslogtreecommitdiff
path: root/keystoneclient/tests/unit/v2_0
diff options
context:
space:
mode:
authorBrant Knudson <bknudson@us.ibm.com>2015-07-24 10:12:12 -0500
committerBrant Knudson <bknudson@us.ibm.com>2015-07-24 11:05:05 -0500
commit6d82f1f17ca99b4e318b6c5bfa24b6dc507ba497 (patch)
tree986f78d1591a5ef1a22037ced396318f02c23017 /keystoneclient/tests/unit/v2_0
parent66fd1eb7484f92a7d3daa468be8c47910ba79216 (diff)
downloadpython-keystoneclient-6d82f1f17ca99b4e318b6c5bfa24b6dc507ba497.tar.gz
Proper deprecation for AccessInfo auth_url property
Properly deprecate accessing AccessInfo's auth_url parameter. bp deprecations Change-Id: I3824904f517434b507587cf73d4389b72f73f22b
Diffstat (limited to 'keystoneclient/tests/unit/v2_0')
-rw-r--r--keystoneclient/tests/unit/v2_0/test_access.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/keystoneclient/tests/unit/v2_0/test_access.py b/keystoneclient/tests/unit/v2_0/test_access.py
index 17b8fe4..c004fa0 100644
--- a/keystoneclient/tests/unit/v2_0/test_access.py
+++ b/keystoneclient/tests/unit/v2_0/test_access.py
@@ -45,7 +45,8 @@ class AccessInfoTest(utils.TestCase, testresources.ResourcedTestCase):
self.assertIsNone(auth_ref.tenant_name)
self.assertIsNone(auth_ref.tenant_id)
- self.assertIsNone(auth_ref.auth_url)
+ with self.deprecations.expect_deprecations_here():
+ self.assertIsNone(auth_ref.auth_url)
self.assertIsNone(auth_ref.management_url)
with self.deprecations.expect_deprecations_here():
@@ -99,7 +100,9 @@ class AccessInfoTest(utils.TestCase, testresources.ResourcedTestCase):
self.assertEqual(auth_ref.tenant_name, auth_ref.project_name)
self.assertEqual(auth_ref.tenant_id, auth_ref.project_id)
- self.assertEqual(auth_ref.auth_url, ('http://public.com:5000/v2.0',))
+ with self.deprecations.expect_deprecations_here():
+ self.assertEqual(auth_ref.auth_url,
+ ('http://public.com:5000/v2.0',))
self.assertEqual(auth_ref.management_url, ('http://admin:35357/v2.0',))
self.assertEqual(auth_ref.project_domain_id, 'default')