def test_removeAlerts(self):
        queue_name = time.time() % "test_queue_%s"
        self.mq.create_queue(queue_name)
        q = self.mq.queue(queue_name)
        q.add_alerts({'type': 'fixed', 'direction': 'desc', 'trigger': 1000, 'queue': 'a_q'},
                     {'type': 'fixed', 'direction': 'asc', 'trigger': 10000, 'queue': 'a_q'},
                     {'type': 'progressive', 'direction': 'asc', 'trigger': 500, 'queue': 'a_q'})
        alerts = [alert['id'] for alert in q.info()['alerts']][0:2]
        last_alert = q.info()['alerts'][2]
        result = q.remove_alerts(*alerts)
        self.assertEqual(result['msg'], 'Alerts were deleted.')
        self.assertEqual(len(q.info()['alerts']), 1)
        self.assertEqual(q.info()['alerts'][0]['id'], last_alert['id'])
dataset/ETHPy150Open iron-io/iron_mq_python/test.py/TestIronMQ.test_removeAlerts/swapped operands of `%`