'Test sustain on and off events happening at the same time.
The off event should be processed last, so this should be a no-op.'

def testApplySustainControlChangesSimultaneousOnOff(self):

    sequence = copy.copy(self.note_sequence)
    testing_lib.add_control_changes_to_sequence(sequence, 0, [(1.0, 64, 127), (1.0, 64, 0)])
    testing_lib.add_track_to_sequence(sequence, 0, [(60, 100, 0.5, 1.5), (60, 100, 2.0, 3.0)])
    sus_sequence = sequences_lib.apply_sustain_control_changes(sequence)
    self.assertProtoEquals(sequence, sus_sequence)
