'Make sure that before course start staff can access
course pages.'

@patch.dict('courseware.access.settings.FEATURES', {'DISABLE_START_DATES': False})
def test_dark_launch_global_staff(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.login(self.global_staff_user)
    self.enroll(self.course, True)
    self.enroll(self.test_course, True)
    self._check_staff(self.course)
    self._check_staff(self.test_course)
