def test_failure(self):
        """Test failure event adds task in queue"""
        bot = SlackBot(self.token, events=[FAILURE], channels=self.channels)
        bot.set_handlers()
        task = luigi.Task()
        self.assertEqual(len(bot.event_queue.get(FAILURE, [])), 0)
        task.trigger_event(luigi.event.Event.FAILURE, task, Exception())
        self.assertEqual(len(bot.event_queue.get(FAILURE)), 1)