    def test_blacklisted_task(self):
        '''Tests receiving a new task that is blacklisted.'''
        self.bot.blacklist.is_present.return_value = True
        self.bot.handle_new_tasks()
        assert self.task.comment == 'blacklisted'
        self.task.set_verifying.assert_called_with()
Tests receiving a new task that is blacklisted.
tests/bot_test.py