Ejemplo n.º 1
0
 def SetOutputFileName(self, outputFileName):
     """Validate the user-specified output file and get the absolute and
     expanded path.
     """
     if outputFileName is not None and outputFileName != "":
         self.outputFileName = checkOutputFile(outputFileName)
Ejemplo n.º 2
0
 def test_checkOutputFile(self):
     """Test checkOutputFile()."""
     samFN = "{0}/out/lambda_out.sam".format(self.rootDir)
     cmpFN = "{0}/out/lambda_out.cmp.h5".format(self.rootDir)
     self.assertTrue(filecmp.cmp(samFN, checkOutputFile(samFN)))
     self.assertTrue(filecmp.cmp(cmpFN, checkOutputFile(cmpFN)))