'Enrolling before a course begins should result in the upgrade deadline being set relative to the
course start date.'

def test_date_with_self_paced_with_enrollment_before_course_start(self):

    global_config = DynamicUpgradeDeadlineConfiguration.objects.create(enabled=True)
    course = self.create_self_paced_course_run(days_till_start=3)
    overview = CourseOverview.get_from_id(course.id)
    expected = (overview.start + timedelta(days=global_config.deadline_days))
    self.assert_upgrade_deadline(course, expected)
