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