Mercurial > repos > yufei-luo > s_mart
comparison commons/pyRepetUnit/align/hmmOutputParsing/tests/Test_F_HmmpfamOutput2align.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 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() |