def METHOD_NAME(self, segment_call):
    """ Ensures that repeatedly saving a course goal does not create new instances of the goal. """
    self.save_course_goal(1, True)
    segment_call.assert_called_with(self.user.id, EVENT_NAME_ADDED, {
        'courserun_key': str(self.course.id),
        'days_per_week': 1,
        'subscribed_to_reminders': True,
    })
    self.save_course_goal(3, True)
    segment_call.assert_called_with(self.user.id, EVENT_NAME_UPDATED, {
        'courserun_key': str(self.course.id),
        'days_per_week': 3,
        'subscribed_to_reminders': True,
    })
    self.save_course_goal(5, False)
    segment_call.assert_called_with(self.user.id, EVENT_NAME_UPDATED, {
        'courserun_key': str(self.course.id),
        'days_per_week': 5,
        'subscribed_to_reminders': False,
    })
    current_goals = CourseGoal.objects.filter(user=self.user, course_key=self.course.id)
    assert len(current_goals) == 1
    assert current_goals[0].days_per_week == 5
    assert current_goals[0].subscribed_to_reminders is False