def test_log_stats():
    application = Application()
    with ManagedServerLoop(application) as server:
        server._tornado.log_stats()
        session1 = pull_session(session_id='session1', url=url(server), io_loop=server.io_loop)
        session2 = pull_session(session_id='session2', url=url(server), io_loop=server.io_loop)
        server._tornado.log_stats()
        session1.close()
        session2.close()
        server._tornado.log_stats()
def test_log_stats():
    application = Application()
    with ManagedServerLoop(application) as server:
        server._tornado.log_stats()
        session1 = pull_session(session_id='session1', url=url(server), io_loop=server.io_loop)
        session2 = pull_session(session_id='session2', url=url(server), io_loop=server.io_loop)
        server._tornado.log_stats()
        session1.close()
        session2.close()
        server._tornado.log_stats()