comparison commons/pyRepetUnit/align/hmmOutputParsing/tests/Test_F_Hmmerpfam2align.py @ 31:0ab839023fe4

Uploaded
author m-zytnicki
date Tue, 30 Apr 2013 14:33:21 -0400
parents 94ab73e8a190
children
comparison
equal deleted inserted replaced
30:5677346472b5 31:0ab839023fe4
1 import os
2 import unittest
3 import commons.pyRepetUnit.hmmer.hmmOutput.HmmpfamOutputProcessing
4 from commons.core.utils.FileUtils import FileUtils
5
6 class Test_F_Hmmerpfam2align(unittest.TestCase):
7
8 def setUp(self):
9 self.hmmpfamOutputProcess = commons.pyRepetUnit.hmmer.hmmOutput.HmmpfamOutputProcessing.HmmpfamOutputProcessing()
10 self._inputFile = "./datas/test_hmmpfam_output"
11 self._outputFile = "./datas/PostProcessResult.align"
12
13 def testAcceptanceHmmpfam2align(self):
14 self.hmmpfamOutputProcess.readHmmOutputsAndWriteAlignFile( self._inputFile, self._outputFile )
15 self.assertTrue(FileUtils.isRessourceExists(self._outputFile))
16 self.assertTrue(FileUtils.are2FilesIdentical(self._inputFile + ".align", self._outputFile))
17 os.remove(self._outputFile)
18
19 if __name__ == "__main__":
20 unittest.main()