def METHOD_NAME(
    self,
):
    # Arrange
    test_project, test_user = create_canned_project()
    allowed_roles = [TeamRoles.PROJECT_MANAGER.value]
    add_user_to_team(
        self.test_team, test_user, TeamMemberFunctions.MEMBER.value, is_active=True
    )
    # Act
    is_team_member = TeamService.check_team_membership(
        test_project.id, allowed_roles, test_user.id
    )
    # Assert
    self.assertFalse(is_team_member)