Exemplo n.º 1
0
 def test_Dialign_simple_with_MSF_output(self):
     """Simple round-trip through app with infile, output MSF."""
     cmdline = DialignCommandline(dialign_exe)
     # Test with properties
     cmdline.input = self.infile1
     cmdline.msf = True
     self.assertEqual(str(cmdline), dialign_exe + " -msf Fasta/f002")
     stdout, stderr = cmdline()
     self.assertEqual(stderr, "")
     self.assertEqual(stdout, "")
     self.assertTrue(os.path.exists(self.outfile1))
     self.assertTrue(os.path.exists(self.outfile2))
Exemplo n.º 2
0
 def test_Dialign_simple_with_MSF_output(self):
     """Simple round-trip through app with infile, output MSF."""
     cmdline = DialignCommandline(dialign_exe)
     # Test with properties
     cmdline.input = self.infile1
     cmdline.msf = True
     self.assertEqual(str(cmdline), dialign_exe + " -msf Fasta/f002")
     stdout, stderr = cmdline()
     self.assertEqual(stderr, "")
     self.assertEqual(stdout, "")
     self.assertTrue(os.path.exists(self.outfile1))
     self.assertTrue(os.path.exists(self.outfile2))
Exemplo n.º 3
0
 def test_Dialign_simple_with_MSF_output(self):
     """Simple round-trip through app with infile, output MSF
     """
     cmdline = DialignCommandline(dialign_exe)
     #Test with properties
     cmdline.input = self.infile1
     cmdline.msf = True
     self.assertEqual(str(cmdline), dialign_exe + " -msf Fasta/f002")
     result, stdout, stderr = Application.generic_run(cmdline)
     self.assertEqual(stdout.read(), "")
     self.assertEqual(stderr.read(), "")
     self.assertEqual(result.return_code, 0)
     self.assert_(os.path.exists(self.outfile1))
     self.assert_(os.path.exists(self.outfile2))
     self.assertEqual(str(result._cl), str(cmdline))
Exemplo n.º 4
0
 def test_Dialign_simple_with_MSF_output(self):
     """Simple round-trip through app with infile, output MSF
     """
     cmdline = DialignCommandline(dialign_exe)
     #Test with properties
     cmdline.input = self.infile1
     cmdline.msf = True
     self.assertEqual(str(cmdline), dialign_exe + " -msf Fasta/f002")
     result, stdout, stderr = Application.generic_run(cmdline)
     self.assertEqual(stdout.read(), "")
     self.assertEqual(stderr.read(), "")
     self.assertEqual(result.return_code, 0)
     self.assert_(os.path.exists(self.outfile1))
     self.assert_(os.path.exists(self.outfile2))
     self.assertEqual(str(result._cl), str(cmdline))
Exemplo n.º 5
0
 def test_Dialign_simple_with_MSF_output(self):
     """Simple round-trip through app with infile, output MSF
     """
     cmdline = DialignCommandline(dialign_exe)
     #Test with properties
     cmdline.input = self.infile1
     cmdline.msf = True
     self.assertEqual(str(cmdline), dialign_exe + " -msf Fasta/f002")
     child = subprocess.Popen(str(cmdline),
                              stdout=subprocess.PIPE,
                              stderr=subprocess.PIPE,
                              shell=(sys.platform!="win32"))
     return_code = child.wait()
     self.assertEqual(return_code, 0)
     self.assertEqual(child.stdout.read(), "")
     self.assertEqual(child.stderr.read(), "")
     self.assert_(os.path.exists(self.outfile1))
     self.assert_(os.path.exists(self.outfile2))
     del child