'L{send1msg} returns the number of bytes which it was able to send.'

def test_shortsend(self):

    message = (('x' * 1024) * 1024)
    self.input.setblocking(False)
    sent = send1msg(self.input.fileno(), message)
    self.assertTrue((sent < len(message)))
    received = recv1msg(self.output.fileno(), 0, len(message))
    self.assertEqual(len(received[0]), sent)
