def test_socket_overrides_memory(self):
    "\n        Test that `OpenSSL.SSL.bio_read` and `OpenSSL.SSL.bio_write` don't\n        work on `OpenSSL.SSL.Connection`() that use sockets.\n        "
    context = Context(TLSv1_METHOD)
    client = socket_any_family()
    clientSSL = Connection(context, client)
    with pytest.raises(TypeError):
        clientSSL.bio_read(100)
    with pytest.raises(TypeError):
        clientSSL.bio_write('foo')
    with pytest.raises(TypeError):
        clientSSL.bio_shutdown()
Test that `OpenSSL.SSL.bio_read` and `OpenSSL.SSL.bio_write` don't
work on `OpenSSL.SSL.Connection`() that use sockets.
def test_socket_overrides_memory(self):
    "\n        Test that `OpenSSL.SSL.bio_read` and `OpenSSL.SSL.bio_write` don't\n        work on `OpenSSL.SSL.Connection`() that use sockets.\n        "
    context = Context(TLSv1_METHOD)
    client = socket_any_family()
    clientSSL = Connection(context, client)
    with pytest.raises(TypeError):
        clientSSL.bio_read(100)
    with pytest.raises(TypeError):
        clientSSL.bio_write('foo')
    with pytest.raises(TypeError):
        clientSSL.bio_shutdown()