'Tests the error conditions for the invalid course index URL.'

def test_course_index_invalid_url(self):

    invalid_course_key = '{}_some_invalid_run'.format(self.course.id)
    course_outline_url = reverse_course_url('course_handler', invalid_course_key)
    response = self.client.get_html(course_outline_url)
    self.assertEqual(response.status_code, 404)
    split_course_key = CourseLocator(org='invalid_org', course='course_01111', run='Run_0_invalid')
    course_outline_url_split = reverse_course_url('course_handler', split_course_key)
    response = self.client.get_html(course_outline_url_split)
    self.assertEqual(response.status_code, 404)
