diff commons/pyRepetUnit/align/hmmOutputParsing/tests/Test_F_Hmmerpfam2align.py @ 18:94ab73e8a190

Uploaded
author m-zytnicki
date Mon, 29 Apr 2013 03:20:15 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/commons/pyRepetUnit/align/hmmOutputParsing/tests/Test_F_Hmmerpfam2align.py	Mon Apr 29 03:20:15 2013 -0400
@@ -0,0 +1,20 @@
+import os
+import unittest
+import commons.pyRepetUnit.hmmer.hmmOutput.HmmpfamOutputProcessing
+from commons.core.utils.FileUtils import FileUtils
+
+class Test_F_Hmmerpfam2align(unittest.TestCase):
+    
+    def setUp(self):
+        self.hmmpfamOutputProcess = commons.pyRepetUnit.hmmer.hmmOutput.HmmpfamOutputProcessing.HmmpfamOutputProcessing()
+        self._inputFile = "./datas/test_hmmpfam_output" 
+        self._outputFile =  "./datas/PostProcessResult.align" 
+        
+    def testAcceptanceHmmpfam2align(self):
+        self.hmmpfamOutputProcess.readHmmOutputsAndWriteAlignFile( self._inputFile, self._outputFile )
+        self.assertTrue(FileUtils.isRessourceExists(self._outputFile))
+        self.assertTrue(FileUtils.are2FilesIdentical(self._inputFile + ".align", self._outputFile))
+        os.remove(self._outputFile)
+        
+if __name__ == "__main__":                 
+    unittest.main()
\ No newline at end of file