Fixing tests to work with keystoneclient 0.6.0

Another item needs mocking with the new release of
python_keystoneclient. Adding it to mocked keystoneclient.Client
object.

Closes-Bug: #1279907
Change-Id: I3c43a7290a6e05c718082dcad369162bf21e3603
(cherry picked from commit 043085f812)
This commit is contained in:
David Lyle 2014-02-13 13:57:22 -07:00 committed by Matthias Runge
parent 117ac2f22c
commit e6a46534d0
1 changed files with 1 additions and 0 deletions

View File

@ -283,6 +283,7 @@ class APITestCase(TestCase):
keystone_client.Client.tenant_id = '1'
keystone_client.Client.tenant_name = 'tenant_1'
keystone_client.Client.management_url = ""
keystone_client.Client.__dir__ = lambda: []
self.keystoneclient = self.mox.CreateMock(keystone_client.Client)
return self.keystoneclient