def METHOD_NAME(self):
    """
    Test that when a user whose role is insufficient attempts to link a
    team, we reject them and reply with the INSUFFICIENT_ROLE_MESSAGE.
    """
    user2 = self.create_user()
    self.create_member(
        teams=[self.team], user=user2, role="member", organization=self.organization
    )
    self.login_as(user2)
    link_user(user2, self.idp, slack_id=OTHER_SLACK_ID)
    data = self.send_slack_message("link team", user_id=OTHER_SLACK_ID)
    assert INSUFFICIENT_ROLE_MESSAGE in get_response_text(data)