def test_GenerateOutfileName(self): infile_var = "test_infile.fasta" comp = RunComponent() comp.wdir = self.wdir comp.check_outfile_filename(infile_var, None, "_out") self.assertEqual(self.wdir + infile_var, comp.infile) self.assertEqual(self.wdir + "test_infile_out", comp.outfile)
def test_check_outfiles_exist(self): infile_tag = "tIn" comp = RunComponent() comp.all_exts = [".test1", ".test2"] self.assertTrue(comp.check_outfiles_with_filetag_exist(self.data_dir + infile_tag)) comp.all_exts = ["not1", "not2"] is_exist, _ = comp.check_outfiles_with_filetag_exist(self.data_dir + infile_tag) self.assertFalse(is_exist)