From ea59511cc2e6dc9598a2debbb91926f14da5d624 Mon Sep 17 00:00:00 2001 From: David Stanek Date: Tue, 5 Jul 2016 19:22:47 +0000 Subject: [PATCH] Use the adapter instead of the client in tests Both the V2.0 and V3 clients create managers by passing in an instance of the _KeystoneAdapter class. Is seems reasonable for the tests to do the same things to keep everything consistent. Change-Id: I06d256e71105fdad3f4d182a53a6887617b4cffe --- keystoneclient/tests/unit/test_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keystoneclient/tests/unit/test_base.py b/keystoneclient/tests/unit/test_base.py index 8a6420e96..7a43619fc 100644 --- a/keystoneclient/tests/unit/test_base.py +++ b/keystoneclient/tests/unit/test_base.py @@ -95,7 +95,7 @@ class ManagerTest(utils.TestCase): auth = v2.Token(auth_url='http://127.0.0.1:5000', token=self.TEST_TOKEN) session_ = session.Session(auth=auth) - self.client = client.Client(session=session_) + self.client = client.Client(session=session_)._adapter self.mgr = base.Manager(self.client) self.mgr.resource_class = base.Resource