'Test that advanced settings don\'t save if there\'s a single wrong input,
and that it shows the correct error message in the modal.'

def test_modal_shows_one_validation_error(self):

    course_display_name = self.advanced_settings.get(u'Course    Display    Name')
    self.advanced_settings.set(u'Course    Display    Name', 1)
    self.advanced_settings.wait_for_modal_load()
    self.check_modal_shows_correct_contents([u'Course    Display    Name'])
    self.advanced_settings.refresh_and_wait_for_load()
    self.assertEquals(self.advanced_settings.get(u'Course    Display    Name'), course_display_name, u'Wrong    input    for    Course    Display    Name    must    not    change    its    value')
