'Verify that course run enrollment status is reflected correctly.'

@ddt.data((1, 1, False), (1, (-1), True))
@ddt.unpack
def test_course_run_enrollment_status(self, start_offset, end_offset, is_enrollment_open):

    self.course.enrollment_start = (datetime.datetime.now(utc) - datetime.timedelta(days=start_offset))
    self.course.enrollment_end = (datetime.datetime.now(utc) - datetime.timedelta(days=end_offset))
    self.course = self.update_course(self.course, self.user.id)
    data = ProgramDataExtender(self.program, self.user).extend()
    self._assert_supplemented(data, is_enrollment_open=is_enrollment_open, enrollment_open_date=strftime_localized(self.course.enrollment_start, 'SHORT_DATE'))
