Permalink
Browse files

Change operation name to find_org_roles_by_user

  • Loading branch information...
Stephen Henrie
Stephen Henrie committed Jun 20, 2012
1 parent 36debe3 commit 1755542d2b3073e1f3de78c03c6b1b13cf004506
Showing with 2 additions and 3 deletions.
  1. +2 −3 ion/services/coi/test/test_governance.py
@@ -247,18 +247,17 @@ def test_org_policy(self):
users = self.org_client.find_enrolled_users(self.ion_org._id, headers=self.sa_user_header)
self.assertEqual(len(users),2)
-
## test_org_roles and policies
roles = self.org_client.find_org_roles(self.ion_org._id)
self.assertEqual(len(roles),3)
self.assertItemsEqual([r.name for r in roles], [MANAGER_ROLE, MEMBER_ROLE, ION_MANAGER])
- roles = self.org_client.find_roles_by_user(self.ion_org._id, self.system_actor._id, headers=self.sa_user_header)
+ roles = self.org_client.find_org_roles_by_user(self.ion_org._id, self.system_actor._id, headers=self.sa_user_header)
self.assertEqual(len(roles),3)
self.assertItemsEqual([r.name for r in roles], [MEMBER_ROLE, MANAGER_ROLE, ION_MANAGER])
- roles = self.org_client.find_roles_by_user(self.ion_org._id, user_id, headers=self.sa_user_header)
+ roles = self.org_client.find_org_roles_by_user(self.ion_org._id, user_id, headers=self.sa_user_header)
self.assertEqual(len(roles),1)
self.assertItemsEqual([r.name for r in roles], [MEMBER_ROLE])

0 comments on commit 1755542

Please sign in to comment.