def test_align(self): """test aligning samples""" c = Dialign(WorkingDir=self.temp_dir, params={"-fn": path.join(self.temp_dir, "seq1.txt")}) c.Parameters["-fa"].on() res = c(path.join(self.temp_dir, 'seq1.txt')) align = "".join(res["Align"].readlines())
def test_base_command(self): """Dialign BaseCommand should return the correct BaseCommand""" c = Dialign() self.assertEqual(c.BaseCommand, ''.join(['cd ', '"%s/"; ' % getcwd(), 'dialign2-2'])) c.Parameters["-fa"].on() self.assertEqual(c.BaseCommand,\ ''.join(['cd ','"%s/"; ' % getcwd(),'dialign2-2 -fa']))