Mercurial > repos > yufei-luo > s_mart
view commons/pyRepetUnit/fastaTranslation/allFrames/tests/Test_F_TranslateAfastaFileInAllFrameAndReplaceStopsByX.py @ 31:0ab839023fe4
Uploaded
author | m-zytnicki |
---|---|
date | Tue, 30 Apr 2013 14:33:21 -0400 |
parents | 94ab73e8a190 |
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()