    def test_no_user_task(self):
        '''Tests a task assigned to an unknown or invalid username.'''
        self.task.username = 'another user'
        self.bot.handle_new_tasks()
        assert self.task.comment == 'invalid user'
        self.task.set_verifying.assert_called_with()
Tests a task assigned to an unknown or invalid username.
tests/bot_test.py