def test_read(): owi = Owi(board.PIN_LED) assert owi.read(2) == b'12'
def test_read(): owi_stub.set_read(b'12') owi = Owi(board.PIN_LED) assert owi.read(2) == b'12'