':py:obj:`Connection.sendall` transmits all of the bytes in the string passed to
it even if this requires multiple calls of an underlying write function.'

def test_long(self):

    (server, client) = self._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)
    self.assertEquals(message, b('').join(accum))
