

def testIgnoreOne(self, tasks, depfile_name):
    output = StringIO()
    cmd = CmdFactory(Ignore, outstream=output, dep_file=depfile_name, backend='dbm', task_list=tasks)
    cmd._execute(['t2', 't1'])
    got = output.getvalue().split('\n')[:(- 1)]
    assert (['ignoring t2', 'ignoring t1'] == got)
    dep = Dependency(DbmDB, depfile_name)
    assert ('1' == dep._get('t1', 'ignore:'))
    assert ('1' == dep._get('t2', 'ignore:'))
    assert (None == dep._get('t3', 'ignore:'))

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