Added test cases for v2 client
This patch adds test cases for v2 client. Change-Id: I887ce631b3c38d0bd5b36bda094a8a642a21ea6c
This commit is contained in:
parent
f2192badc1
commit
1c07c4129a
@ -30,3 +30,17 @@ class TestClient(TestCase):
|
||||
adapted = adapter.Adapter(session=session)
|
||||
client = Client(session=adapted)
|
||||
assert client.session
|
||||
|
||||
def test_init_with_session_timeout(self):
|
||||
session = keystone_session.Session()
|
||||
client = Client(
|
||||
session=session,
|
||||
timeout=1)
|
||||
assert client.session.timeout == 1
|
||||
|
||||
def test_init_with_auth(self):
|
||||
session = keystone_session.Session()
|
||||
client = Client(
|
||||
auth='http://127.0.0.1:22/',
|
||||
session=session)
|
||||
assert client.session.auth
|
||||
|
Loading…
x
Reference in New Issue
Block a user