def test_unexpected_EOF(self):
    '\n        If the connection is lost before an orderly SSL shutdown occurs,\n        `OpenSSL.SSL.SysCallError` is raised with a message of\n        "Unexpected EOF".\n        '
    (server_conn, client_conn) = loopback()
    client_conn.sock_shutdown(SHUT_RDWR)
    with pytest.raises(SysCallError) as err:
        server_conn.recv(1024)
    assert (err.value.args == ((- 1), 'Unexpected EOF'))
If the connection is lost before an orderly SSL shutdown occurs,
`OpenSSL.SSL.SysCallError` is raised with a message of
"Unexpected EOF".
def test_unexpected_EOF(self):
    '\n        If the connection is lost before an orderly SSL shutdown occurs,\n        `OpenSSL.SSL.SysCallError` is raised with a message of\n        "Unexpected EOF".\n        '
    (server_conn, client_conn) = loopback()
    client_conn.sock_shutdown(SHUT_RDWR)
    with pytest.raises(SysCallError) as err:
        server_conn.recv(1024)
    assert (err.value.args == ((- 1), 'Unexpected EOF'))