def test_reserveMessages(self):
        msg = "%s" % time.time()
        q = self.mq.queue("test_queue")
        q.clear()
        ids = q.post(msg + str(0), msg + str(1), msg + str(2))
        messages = q.reserve(3)

        for idx, val in enumerate(messages["messages"]):
            self.assertEqual(msg + str(idx), val["body"])
            self.assertEqual(ids["ids"][idx], val["id"])
            self.assertTrue(len(val["reservation_id"]) > 0)
            self.assertEqual(val["reserved_count"], 1)
dataset/ETHPy150Open iron-io/iron_mq_python/test.py/TestIronMQ.test_reserveMessages/original