def METHOD_NAME(self):
    NotificationSetting.objects.update_settings(
        ExternalProviders.EMAIL,
        NotificationSettingTypes.ISSUE_ALERTS,
        NotificationSettingOptionValues.ALWAYS,
        user_id=self.user.id,
    )
    ns = NotificationSetting.objects.find_settings(
        provider=ExternalProviders.EMAIL,
        type=NotificationSettingTypes.ISSUE_ALERTS,
        user_id=self.user.id,
    )[0]
    assert ns.user_id == self.user.id
    assert ns.team_id is None