def test_edit_valid_index(self): note = NotesApplication("author", ["note1", "note2", "note3", "note4"]) note.edit(1, "note9") note_list = note.list() self.assertListEqual(note_list, ["note1", "note2", "note3", "note4"], msg='Edit should alter supplied index in the notes list')