comparison commons/pyRepetUnit/align/hmmOutputParsing/tests/Test_F_HmmpfamOutput2align.py @ 18:94ab73e8a190

Uploaded
author m-zytnicki
date Mon, 29 Apr 2013 03:20:15 -0400
parents
children
comparison
equal deleted inserted replaced
17:b0e8584489e6 18:94ab73e8a190
1 import os
2 import unittest
3 from commons.pyRepetUnit.align.hmmOutputParsing.HmmpfamOutput2align import HmmpfamOutput2align
4 from commons.core.utils.FileUtils import FileUtils
5
6 class Test_F_HmmpfamOutput2align(unittest.TestCase):
7
8 def setUp(self):
9 self.hmmpfamOutput2align = HmmpfamOutput2align()
10 self._inputFile = "./datas/test_hmmpfam_output"
11 self._outputFile = "./datas/hmmpfam_output.align"
12
13 def testParseHmmpfamOutput2align(self):
14 self.hmmpfamOutput2align.setInputFile(self._inputFile)
15 self.hmmpfamOutput2align.setOutputFile(self._outputFile)
16 self.hmmpfamOutput2align.run()
17 self.assertTrue(FileUtils.isRessourceExists(self._outputFile))
18 self.assertTrue(FileUtils.are2FilesIdentical(self._inputFile + ".align", self._outputFile))
19 os.remove( self._outputFile )
20
21 if __name__ == "__main__":
22 unittest.main()