def test_addAlerts(self):
        queue_name = "test_queue_%s" % time.time()
        self.mq.create_queue(queue_name)
        q = self.mq.queue(queue_name)
        fixed_alert = [{'type': 'fixed', 'direction': 'desc', 'trigger': 1000, 'queue': 'a_q'}]
        response = q.add_alerts(*fixed_alert)
        self.assertTrue("alerts" in response)
dataset/ETHPy150Open iron-io/iron_mq_python/test.py/TestIronMQ.test_addAlerts/original