'Verify that the course home page handles start dates correctly.'

@mock.patch.dict('django.conf.settings.FEATURES', {'DISABLE_START_DATES': False})
def test_start_date_handling(self):

    future_course = self.create_future_course(datetime(2030, 1, 1, tzinfo=UTC))
    url = course_home_url(future_course)
    response = self.client.get(url)
    self.assertRedirects(response, '/dashboard?notlive=Jan+01%2C+2030')
    with override_flag(COURSE_PRE_START_ACCESS_FLAG.namespaced_flag_name, True):
        url = course_home_url(future_course)
        response = self.client.get(url)
        self.assertEqual(response.status_code, 200)
