diff options
Diffstat (limited to 'keystoneclient/tests/unit/client_fixtures.py')
-rw-r--r-- | keystoneclient/tests/unit/client_fixtures.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/keystoneclient/tests/unit/client_fixtures.py b/keystoneclient/tests/unit/client_fixtures.py index 65de003..71120eb 100644 --- a/keystoneclient/tests/unit/client_fixtures.py +++ b/keystoneclient/tests/unit/client_fixtures.py @@ -95,7 +95,10 @@ class KscSessionV2(BaseV2): a = ksc_identity.V2Password(username=uuid.uuid4().hex, password=uuid.uuid4().hex, auth_url=self.TEST_URL) - s = ksc_session.Session(auth=a) + + with self.deprecations.expect_deprecations_here(): + s = ksc_session.Session(auth=a) + return v2_client.Client(session=s) @@ -166,7 +169,10 @@ class KscSessionV3(BaseV3): password=uuid.uuid4().hex, user_domain_id=uuid.uuid4().hex, auth_url=self.TEST_URL) - s = ksc_session.Session(auth=a) + + with self.deprecations.expect_deprecations_here(): + s = ksc_session.Session(auth=a) + return v3_client.Client(session=s) |