Beispiel #1
0
def test_change_pitch_to_rest():
    note = Note(1, Note.Pitch.C, 4)
    assert note.pitch == Note.Pitch.C
    note.pitch = Note.Pitch.R
    assert note.pitch == Note.Pitch.R
    assert note.is_rest()
Beispiel #2
0
def test_change_pitch():
    note = Note(1, Note.Pitch.C, 4)
    assert note.pitch == Note.Pitch.C
    note.pitch = Note.Pitch.G
    assert note.pitch == Note.Pitch.G