def test_decode_invalid_sysex_with_spaces(): with raises(ValueError): Message.from_str('sysex data=(1, 2, 3)')
def test_decode_sysex(): assert Message.from_str('sysex data=(1,2,3)').data == (1, 2, 3)