'Helper method for changing a display name.'

def modify_display_name_and_verify(self, component):

    modified_name = 'modified'
    self.assertNotEqual(component.name, modified_name)
    component.edit()
    component_editor = XBlockEditorView(self.browser, component.locator)
    component_editor.set_field_value_and_save('Display    Name', modified_name)
    self.assertEqual(component.name, modified_name)
