Mercurial > repos > yufei-luo > s_mart
view commons/launcher/tests/Test_BlatClusterLauncher.py @ 31:0ab839023fe4
Uploaded
author | m-zytnicki |
---|---|
date | Tue, 30 Apr 2013 14:33:21 -0400 |
parents | 94ab73e8a190 |
children |
line wrap: on
line source
import unittest from commons.launcher.BlatClusterLauncher import BlatClusterLauncher class Test_BlatClusterLauncher( unittest.TestCase ): def setUp( self ): self._i = BlatClusterLauncher() def tearDown( self ): self._i = None def test_getSpecificHelpAsString( self ): exp = "" exp += "\nspecific options:" exp += "\n -s: name of the subject file (format='fasta')" exp += "\n -p: parameters for 'blat'" exp += "\n -Z: concatenate output files" exp += "\n -A: same sequences (all-by-all)" obs = self._i.getSpecificHelpAsString() self.assertEqual( exp, obs ) def test_setASpecificAttributeFromCmdLine( self ): self._i.setASpecificAttributeFromCmdLine( "-s", "dummySubjectFile.fa" ) self.assertEqual( "dummySubjectFile.fa", self._i.getSubjectFile() ) test_suite = unittest.TestSuite() test_suite.addTest( unittest.makeSuite( Test_BlatClusterLauncher ) ) if __name__ == "__main__": unittest.TextTestRunner(verbosity=2).run( test_suite )