def test_lengthen_duration(): note = Note(1, Note.Pitch.C, 4) assert note.duration == 1 note.duration = 2 assert note.duration == 2
def test_shorten_duration(): note = Note(1, Note.Pitch.C, 4) assert note.duration == 1 note.duration = 0.5 assert note.duration == 0.5