Ejemplo n.º 1
0
def test_write():
    owi = Owi(board.PIN_LED)
    assert owi.write(b'23') == 2
    assert owi.write(b'23', 1) == 1
Ejemplo n.º 2
0
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