def test_long(self):
    '\n        `Connection.sendall` transmits all the bytes in the string passed to it\n        even if this requires multiple calls of an underlying write function.\n        '
    (server, client) = loopback()
    message = ((b'x' * ((1024 * 32) - 1)) + b'y')
    server.sendall(message)
    accum = []
    received = 0
    while (received < len(message)):
        data = client.recv(1024)
        accum.append(data)
        received += len(data)
    assert (message == b''.join(accum))
`Connection.sendall` transmits all the bytes in the string passed to it
even if this requires multiple calls of an underlying write function.
def test_long(self):
    '\n        `Connection.sendall` transmits all the bytes in the string passed to it\n        even if this requires multiple calls of an underlying write function.\n        '
    (server, client) = loopback()
    message = ((b'x' * ((1024 * 32) - 1)) + b'y')
    server.sendall(message)
    accum = []
    received = 0
    while (received < len(message)):
        data = client.recv(1024)
        accum.append(data)
        received += len(data)
    assert (message == b.join(accum))