def METHOD_NAME(self, external_user_key, user, created_date):
    """ helper function to setup enrollments """
    with freeze_time(created_date):
        program_enrollment = ProgramEnrollmentFactory(
            user=user,
            external_user_key=external_user_key,
        )
        self._set_up_course_enrollment(
            user, program_enrollment, self.timed_course_key
        )
    # additional course enrollment that is always fresh
    self._set_up_course_enrollment(
        user, program_enrollment, self.fresh_course_key
    )