'If the underlying C{sendmsg} call fails, L{send1msg} raises
L{socket.error} with its errno set to the underlying errno value.'

def test_syscallError(self):

    self.input.close()
    exc = self.assertRaises(error, sendmsg, self.input, 'hello,    world')
    self.assertEqual(exc.args[0], errno.EBADF)
