'Test close(all_fds=True)'

def test_close_all(self):

    loop = ioloop.IOLoop.instance()
    (req, rep) = self.create_bound_pair(zmq.REQ, zmq.REP)
    loop.add_handler(req, (lambda msg: msg), ioloop.IOLoop.READ)
    loop.add_handler(rep, (lambda msg: msg), ioloop.IOLoop.READ)
    self.assertEqual(req.closed, False)
    self.assertEqual(rep.closed, False)
    loop.close(all_fds=True)
    self.assertEqual(req.closed, True)
    self.assertEqual(rep.closed, True)
