Mercurial > repos > yufei-luo > s_mart
view 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 source
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()