Fix-test-of-assertValidRole

Test of assertValidRole, so we should change the parameter name
from tenant to role.

Change-Id: I7a7b0a26a454a6baa0ab00501dec03cf8c853fba
This commit is contained in:
liyanhang 2017-04-19 11:04:12 +08:00
parent c7ab7c5677
commit 35738c4949
1 changed files with 3 additions and 3 deletions

View File

@ -62,9 +62,9 @@ class CoreApiTests(object):
self.assertIsNotNone(user.get('id'))
self.assertIsNotNone(user.get('name'))
def assertValidRole(self, tenant):
self.assertIsNotNone(tenant.get('id'))
self.assertIsNotNone(tenant.get('name'))
def assertValidRole(self, role):
self.assertIsNotNone(role.get('id'))
self.assertIsNotNone(role.get('name'))
def test_public_not_found(self):
r = self.public_request(