Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_parse_midi():
data = MidiTuple(0, 144, 72, 64)
result = parse(b'm', struct.pack('>I', format_midi(data)))[0]
assert result == data