def test_label_files(self): """Tests input/output file labelling.""" wd = Path('/fakeworkingdir') self.assertEqual( compile_inputs_outputs( [{'argv': ['aa', 'bb.txt'], 'workingdir': wd}], [[wd / 'aa', Path('/other/cc.bin'), wd / 'bb.txt']], [[]]), {'arg0': InputOutputFile(wd / 'aa', [0], []), 'cc.bin': InputOutputFile(Path('/other/cc.bin'), [0], []), 'arg1': InputOutputFile(wd / 'bb.txt', [0], [])})