def METHOD_NAME(self):
    open_file = open(__file__, "rb")
    self.addCleanup(open_file.close)
    fd = open_file.fileno()
    devpoll = select.devpoll()
    # test fileno() method and closed attribute
    self.assertIsInstance(devpoll.fileno(), int)
    self.assertFalse(devpoll.closed)
    # test close()
    devpoll.close()
    self.assertTrue(devpoll.closed)
    self.assertRaises(ValueError, devpoll.fileno)
    # close() can be called more than once
    devpoll.close()
    # operations must fail with ValueError("I/O operation on closed ...")
    self.assertRaises(ValueError, devpoll.modify, fd, select.POLLIN)
    self.assertRaises(ValueError, devpoll.poll)
    self.assertRaises(ValueError, devpoll.register, fd, fd, select.POLLIN)
    self.assertRaises(ValueError, devpoll.unregister, fd)