Mercurial > repos > yufei-luo > s_mart
diff commons/pyRepetUnit/fastaTranslation/allFrames/tests/Test_F_TranslateAfastaFileInAllFrameAndReplaceStopsByX.py @ 18:94ab73e8a190
Uploaded
author | m-zytnicki |
---|---|
date | Mon, 29 Apr 2013 03:20:15 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/commons/pyRepetUnit/fastaTranslation/allFrames/tests/Test_F_TranslateAfastaFileInAllFrameAndReplaceStopsByX.py Mon Apr 29 03:20:15 2013 -0400 @@ -0,0 +1,23 @@ +import unittest +import os +from commons.core.utils.FileUtils import FileUtils + +class Test_F_TranslateAfastaFileInAllFrameAndReplaceStopsByX(unittest.TestCase): + + def setUp(self): + self._inputFile = "./datas/ConsensusTestFile_nt.fsa" + self._outputFile = "./datas/PreprocessOuputFile" + self._prg = "translateAfastaFileInAllFrameAndReplaceStopsByX_script.py" + + + def testAcceptanceTranslateAfastaFileInAllFrameAndReplaceStopsByX_script(self): + cmd = self._prg + cmd += " -i %s" % ( self._inputFile ) + cmd += " -o %s" % ( self._outputFile ) + os.system( cmd ) + self.assertTrue(FileUtils.are2FilesIdentical( self._outputFile, "./datas/ConsensusTestFile_aaWithoutStop.fsa")) + os.system( "rm " + self._outputFile ) + + +if __name__ == "__main__": + unittest.main() \ No newline at end of file