示例#1
0
  def testForOrgAdminThatCanResign(self, mock_func):
    """Tests that org admin that can resign is eligible."""
    self.profile.mentor_for = [self.org.key]
    self.profile.admin_for = [self.org.key]

    result = profile_logic.isMentorRoleEligibleForOrg(
        self.profile, self.org.key)
    self.assertTrue(result)
示例#2
0
 def testForUserWithNoRole(self):
   """Tests that user with no role is eligible."""
   result = profile_logic.isMentorRoleEligibleForOrg(
       self.profile, self.org.key)
   self.assertTrue(result)