def test_socket_connect(self):
    "\n        Just like `test_memory_connect` but with an actual socket.\n\n        This is primarily to rule out the memory BIO code as the source of any\n        problems encountered while passing data over a `Connection` (if\n        this test fails, there must be a problem outside the memory BIO code,\n        as no memory BIO is involved here).  Even though this isn't a memory\n        BIO test, it's convenient to have it here.\n        "
    (server_conn, client_conn) = loopback()
    important_message = b"Help me Obi Wan Kenobi, you're my only hope."
    client_conn.send(important_message)
    msg = server_conn.recv(1024)
    assert (msg == important_message)
    important_message = important_message[::(- 1)]
    server_conn.send(important_message)
    msg = client_conn.recv(1024)
    assert (msg == important_message)
Just like `test_memory_connect` but with an actual socket.

This is primarily to rule out the memory BIO code as the source of any
problems encountered while passing data over a `Connection` (if
this test fails, there must be a problem outside the memory BIO code,
as no memory BIO is involved here).  Even though this isn't a memory
BIO test, it's convenient to have it here.
def test_socket_connect(self):
    "\n        Just like `test_memory_connect` but with an actual socket.\n\n        This is primarily to rule out the memory BIO code as the source of any\n        problems encountered while passing data over a `Connection` (if\n        this test fails, there must be a problem outside the memory BIO code,\n        as no memory BIO is involved here).  Even though this isn't a memory\n        BIO test, it's convenient to have it here.\n        "
    (server_conn, client_conn) = loopback()
    important_message = b"Help me Obi Wan Kenobi, you're my only hope."
    client_conn.send(important_message)
    msg = server_conn.recv(1024)
    assert (msg == important_message)
    important_message = important_message[::(- 1)]
    server_conn.send(important_message)
    msg = client_conn.recv(1024)
    assert (msg == important_message)