def METHOD_NAME(self, mock_provider, get_audit, create_audit):
    self.auth_provider_inst.flags.allow_unlinked = False
    mock_provider.get.return_value = self.auth_provider_inst
    om = OrganizationMember.objects.get(id=self.member.id)
    assert om.email == self.member.email
    helper = ApiInviteHelper(
        self.request,
        organization_service.get_invite_by_id(
            organization_member_id=om.id, organization_id=om.organization_id
        ),
        None,
    )
    helper.accept_invite()
    # Invite cannot be accepted without AuthIdentity if SSO is required
    om = OrganizationMember.objects.get(id=self.member.id)
    assert om.email is not None
    assert om.user_id is None