

def test_client_disconnect():
    (server, session, transport, conn) = _get_test_environment()
    session.recv(proto.disconnect())
    eq_(transport.pop_outgoing(), '0::')
    eq_(conn.is_open, False)
    eq_(session.is_closed, True)

dataset/ETHPy150Open mrjoes/tornadio2/tests/session_test.py test_client_disconnect/VarMisuse@23/29 `transport`->`session`