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

def test_shortsend(self):

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