'The device\'s C{ioctl} implementation raises L{IOError} with an errno of
C{EINVAL} when called with a request (second argument) which is not a
supported operation.'

def test_ioctlEINVAL(self):

    request = 3735928559
    exc = self.assertRaises(IOError, self.system.ioctl, self.fileno, request, 'garbage')
    self.assertEqual(EINVAL, exc.errno)
