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
This commit is contained in:
David Lyle 2014-02-13 13:57:22 -07:00
parent 4e1eb710e0
commit 043085f812
1 changed files with 1 additions and 0 deletions

View File

@ -304,6 +304,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