def test_get_inputs(self): job = AbstractJob() f1 = File("a") job.add_inputs(f1) assert job.get_inputs() == {f1}
def test_add_inputs(self): job = AbstractJob() f1 = File("a") f2 = File("b") job.add_inputs(f1, f2) assert job.get_inputs() == {f1, f2}
def test_set_stdin(self): job = AbstractJob() job.set_stdin(File("a")) assert job.get_stdin() == File("a") assert job.get_inputs() == {File("a")}