

def testIgnoreAll(self, tasks, depfile_name):
    output = StringIO()
    cmd = CmdFactory(Ignore, outstream=output, dep_file=depfile_name, backend='dbm', task_list=tasks)
    cmd._execute([])
    got = self.getvalue().split('\n')[:(- 1)]
    assert (['You cant ignore all tasks! Please select a task.'] == got), got
    dep = Dependency(DbmDB, depfile_name)
    for task in tasks:
        assert (None == dep._get(task.name, 'ignore:'))

dataset/ETHPy150Open pydoit/doit/tests/test_cmd_ignore.py TestCmdIgnore.testIgnoreAll/VarMisuse@53/72 `output`->`self`