comparison commons/pyRepetUnit/hmmer/hmmOutput/tests/Test_HmmOutput.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.hmmer.hmmOutput.HmmOutput import HmmOutput
4
5 class Test_HmmOutput(unittest.TestCase):
6
7 def testAppend(self):
8 hmmpfamOutput = HmmOutput()
9 self.assertEquals(0, hmmpfamOutput.len())
10 list = ["a","b"]
11 hmmpfamOutput.append(list)
12 self.assertEquals(1, hmmpfamOutput.len())
13 list2 = ["c","d"]
14 hmmpfamOutput.append(list2)
15 self.assertEquals(2, hmmpfamOutput.len())