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)
def testForUserWithNoRole(self): """Tests that user with no role is eligible.""" result = profile_logic.isMentorRoleEligibleForOrg( self.profile, self.org.key) self.assertTrue(result)