'The C{flags} argument to L{sendmsg} is passed on to the underlying
C{sendmsg} call, to affect it in whatever way is defined by those
flags.'

def test_flags(self):

    for i in range(1024):
        try:
            sendmsg(self.input, ('x' * 1024), flags=MSG_DONTWAIT)
        except error as e:
            self.assertEqual(e.args[0], errno.EAGAIN)
            break
    else:
        self.fail('Failed    to    fill    up    the    send    buffer,    or    maybe    send1msg    blocked    for    a    while')
