'Changes the display name of item from old_name to new_name, then verifies that its value is expected_name.'

def set_name_and_verify(self, item, old_name, new_name, expected_name):

    self.assertEqual(item.name, old_name)
    item.change_name(new_name)
    self.assertFalse(item.in_editable_form())
    self.assertEqual(item.name, expected_name)
