def test_write(): owi = Owi(board.PIN_LED) assert owi.write(b'23') == 2 assert owi.write(b'23', 1) == 1
def test_write(): owi_stub.set_write([b'23', b'2']) owi = Owi(board.PIN_LED) assert owi.write(b'23') == 2 assert owi.write(b'23', 1) == 1