'Test that :py:obj:`OpenSSL.SSL.bio_read` and :py:obj:`OpenSSL.SSL.bio_write` don\'t
work on :py:obj:`OpenSSL.SSL.Connection`() that use sockets.'

def test_socketOverridesMemory(self):

    context = Context(SSLv3_METHOD)
    client = socket()
    clientSSL = Connection(context, client)
    self.assertRaises(TypeError, clientSSL.bio_read, 100)
    self.assertRaises(TypeError, clientSSL.bio_write, 'foo')
    self.assertRaises(TypeError, clientSSL.bio_shutdown)
