summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZiad Sawalha <github@highbridgellc.com>2011-07-19 20:32:07 -0500
committerZiad Sawalha <github@highbridgellc.com>2011-07-19 20:32:07 -0500
commit16c0a5e03372daa6f3f66feffc5383a8efb5f418 (patch)
treec14a573da72e32756a88b22e60e433a8444fb5d1
parentdf2015ba3dc0a30f0a311df0a2891b0d489004ce (diff)
More test fixes
-rwxr-xr-xkeystone/test/unit/test_roles.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/keystone/test/unit/test_roles.py b/keystone/test/unit/test_roles.py
index 03294b0f..5047adb0 100755
--- a/keystone/test/unit/test_roles.py
+++ b/keystone/test/unit/test_roles.py
@@ -69,7 +69,7 @@ class GetRolesTest(RolesTest):
if not "roles" in obj:
raise self.fail("Expecting Roles")
roles = obj["roles"]["values"]
- if len(roles) != 1:
+ if len(roles) != 2:
self.fail("Roles not of required length.")
role = roles[0]
@@ -77,7 +77,7 @@ class GetRolesTest(RolesTest):
role_id = None
else:
role_id = role["id"]
- if role_id != 'Admin':
+ if role_id not in ['Admin', 'Member']:
self.fail("Not the expected Role")
@@ -107,8 +107,8 @@ class GetRolesTest(RolesTest):
if len(roles) != 2:
self.fail("Not the expected Role count")
for role in roles:
- if role.get("id") != 'Admin':
- self.fail("Not the expected Role")
+ if role.get("id") not in ['Admin', 'Member']:
+ self.fail("Unexpected Role")
def test_get_roles_exp_token(self):