def test_outgoing_overflow(self):
    '\n        If more bytes than can be written to the memory BIO are passed to\n        `Connection.send` at once, the number of bytes which were written is\n        returned and that many bytes from the beginning of the input can be\n        read from the other end of the connection.\n        '
    server = self._server(None)
    client = self._client(None)
    interact_in_memory(client, server)
    size = (2 ** 15)
    sent = client.send((b'x' * size))
    assert (sent < size)
    (receiver, received) = interact_in_memory(client, server)
    assert (receiver is server)
    assert (len(received) == sent)
If more bytes than can be written to the memory BIO are passed to
`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_outgoing_overflow(self):
    '\n        If more bytes than can be written to the memory BIO are passed to\n        `Connection.send` at once, the number of bytes which were written is\n        returned and that many bytes from the beginning of the input can be\n        read from the other end of the connection.\n        '
    server = self._server(None)
    client = self._client(None)
    interact_in_memory(client, server)
    size = (2 ** 15)
    sent = client.send((b'x' * size))
    assert (sent < size)
    (receiver, received) = interact_in_memory(client, server)
    assert (receiver is server)
    assert (len(received) == sent)