def METHOD_NAME(self):
    enrollment = CourseEnrollment.enroll(self.user, self.course.id, CourseMode.VERIFIED)
    enrollment.schedule.start_date = timezone.now() - datetime.timedelta(days=100)
    enrollment.schedule.save()
    # Test body with incorrect body param (course_key is required)
    response = self.client.post(reverse('course-experience-reset-course-deadlines'), {'course': self.course.id})
    assert response.status_code == 400
    assert enrollment.schedule == Schedule.objects.get(id=enrollment.schedule.id)
    self.assert_no_events_were_emitted()
    # Test correct post body
    response = self.client.post(reverse('course-experience-reset-course-deadlines'), {'course_key': self.course.id})
    assert response.status_code == 200
    assert enrollment.schedule.start_date < Schedule.objects.get(id=enrollment.schedule.id).start_date
    self.assert_event_emitted(
        'edx.ui.lms.reset_deadlines.clicked',
        courserun_key=str(self.course.id),
        is_masquerading=False,
        is_staff=False,
        org_key=self.course.org,
        user_id=self.user.id,
    )