예제 #1
0
def test_queueio_write():
    q = Queue()
    qio = QueueIO(q)
    qio.write('test')
    assert q.get() == {'output': 'test'}
예제 #2
0
def test_queueio_random_methods():
    qio = QueueIO(Queue())
    assert qio.isatty() is False
    assert qio.flush() is None