def METHOD_NAME(self):
    """
    Verify form checks for validity of course keys provided
    """
    self.form_data['course_keys'] = 'course-v1:edX+DemoX+Demo_Course,invalid_course_key'
    self.assert_error('course_keys', "'invalid_course_key' is not a valid course key.")