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

def test_course_updates_invalid_url(self):

    invalid_course_key = '{}_blah_blah_blah'.format(self.course.id)
    course_updates_url = reverse_course_url('course_info_handler', invalid_course_key)
    response = self.client.get(course_updates_url)
    self.assertEqual(response.status_code, 404)
    split_course_key = CourseLocator(org='orgASD', course='course_01213', run='Run_0_hhh_hhh_hhh')
    course_updates_url_split = reverse_course_url('course_info_handler', split_course_key)
    response = self.client.get(course_updates_url_split)
    self.assertEqual(response.status_code, 404)
    invalid_course_id = 'invalid.course.key/{}'.format(split_course_key)
    course_updates_url_split = reverse_course_url('course_info_handler', invalid_course_id)
    response = self.client.get(course_updates_url_split)
    self.assertEqual(response.status_code, 404)
