'Make sure that before course start, students can\'t access course
pages.'

@patch.dict('courseware.access.settings.FEATURES', {'DISABLE_START_DATES': False})
def test_dark_launch_enrolled_student(self):

    now = datetime.datetime.now(pytz.UTC)
    tomorrow = (now + datetime.timedelta(days=1))
    self.course.start = tomorrow
    self.test_course.start = tomorrow
    self.course = self.update_course(self.course, self.user.id)
    self.test_course = self.update_course(self.test_course, self.user.id)
    self.assertFalse(self.course.has_started())
    self.assertFalse(self.test_course.has_started())
    self.login(self.enrolled_user)
    self._check_non_staff_light(self.course)
    self._check_non_staff_dark(self.course)
    self._check_non_staff_light(self.test_course)
    self._check_non_staff_dark(self.test_course)
