view commons/pyRepetUnit/hmmer/hmmOutput/tests/Test_HmmOutput.py @ 18:94ab73e8a190

Uploaded
author m-zytnicki
date Mon, 29 Apr 2013 03:20:15 -0400
parents
children
line wrap: on
line source

import os
import unittest
from commons.pyRepetUnit.hmmer.hmmOutput.HmmOutput import HmmOutput

class Test_HmmOutput(unittest.TestCase):
    
    def testAppend(self):
        hmmpfamOutput = HmmOutput()
        self.assertEquals(0, hmmpfamOutput.len())
        list = ["a","b"]
        hmmpfamOutput.append(list)
        self.assertEquals(1, hmmpfamOutput.len())
        list2 = ["c","d"]
        hmmpfamOutput.append(list2)
        self.assertEquals(2, hmmpfamOutput.len())