18
|
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() |