

def testIgnoreInvalid(self, tasks, depfile_name):
    output = StringIO()
    cmd = CmdFactory(Ignore, outstream=output, dep_file=depfile_name, backend='dbm', task_list=tasks)
    pytest.raises(InvalidCommand, cmd._execute, ['XXX'])

dataset/ETHPy150Open pydoit/doit/tests/test_cmd_ignore.py TestCmdIgnore.testIgnoreInvalid/original