'If more bytes than can be written to the memory BIO are passed to
:py:obj:`Connection.send` at once, the number of bytes which were written is
returned and that many bytes from the beginning of the input can be
read from the other end of the connection.'

def test_outgoingOverflow(self):

    server = self._server(None)
    client = self._client(None)
    self._interactInMemory(client, server)
    size = (2 ** 15)
    sent = client.send(('x' * size))
    self.assertTrue((sent < size))
    (receiver, received) = self._interactInMemory(client, server)
    self.assertIdentical(receiver, server)
    self.assertEquals(len(received), sent)
