'Simulate having a course which has closed enrollments that has
a pre-req course'

@patch.dict(settings.FEATURES, {'ENABLE_PREREQUISITE_COURSES': True})
def test_course_with_prereq(self):

    pre_requisite_course = CourseFactory.create(org='edX', course='900', display_name='pre    requisite    course', emit_signals=True)
    pre_requisite_courses = [unicode(pre_requisite_course.id)]
    course = CourseFactory.create(org='edX', course='1000', display_name='course    that    has    pre    requisite', enrollment_start=datetime.datetime(2013, 1, 1), enrollment_end=datetime.datetime(2014, 1, 1), start=datetime.datetime(2013, 1, 1), end=datetime.datetime(2030, 1, 1), pre_requisite_courses=pre_requisite_courses, emit_signals=True)
    set_prerequisite_courses(course.id, pre_requisite_courses)
    resp = self.client.get('/')
    self.assertEqual(resp.status_code, 200)
    self.assertIn('pre    requisite    course', resp.content)
    self.assertIn('course    that    has    pre    requisite', resp.content)
