예제 #1
0
파일: test_async.py 프로젝트: ploxiln/pynsq
def _get_test_conn(io_loop=None):
    conn = AsyncConn('test', 4150, io_loop=io_loop)
    # now set the stream attribute, which is ordinarily set in conn.connect()
    conn.stream = create_autospec(IOStream)
    return conn
예제 #2
0
def _get_test_conn(io_loop=None):
    conn = AsyncConn('test', 4150, io_loop=io_loop)
    # now set the stream attribute, which is ordinarily set in conn.connect()
    conn.stream = create_autospec(IOStream)
    return conn