- except ValueError, TypeError:
+ except ValueError, TypeError:
# TypeError occurs when we pass to many arguments.
# ValueError may be thrown when the received data is not correct.
sysex = (chr(0xF0), chr(0x7), chr(1), chr(2), chr(3), chr(0xF7))
+ def test_too_much_data(self):
+ ``_process_command`` should return True when too much data is given
+ res = self.board._process_command(pyfirmata.ANALOG_MESSAGE, [1, 1, 1, 1, 1])