def test_reserveMessage(self):
         msg = "Test message %s" % time.time()
         q = self.mq.queue("test_queue")
         q.clear()
         id = q.post(msg)
         message = q.reserve()
         self.assertEqual(msg, message["messages"][0]["body"])
         self.assertEqual(id["ids"][0], message["messages"][0]["id"])
dataset/ETHPy150Open iron-io/iron_mq_python/test.py/TestIronMQ.test_reserveMessage/original