Mercurial > repos > yufei-luo > s_mart
comparison commons/launcher/tests/Test_MafftClusterLauncher.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 unittest | |
2 from commons.launcher.MafftClusterLauncher import MafftClusterLauncher | |
3 | |
4 | |
5 class Test_MafftClusterLauncher( unittest.TestCase ): | |
6 | |
7 def setUp( self ): | |
8 self._i = MafftClusterLauncher() | |
9 | |
10 | |
11 def tearDown( self ): | |
12 self._i = None | |
13 | |
14 | |
15 def test_getSpecificHelpAsString( self ): | |
16 exp = "" | |
17 exp += "\nspecific options:" | |
18 exp += "\n -p: parameters for 'mafft' (default='--auto')" | |
19 obs = self._i.getSpecificHelpAsString() | |
20 self.assertEqual( exp, obs ) | |
21 | |
22 | |
23 def test_setASpecificAttributeFromCmdLine( self ): | |
24 self._i.setASpecificAttributeFromCmdLine( "-p", "dummyPrgParam" ) | |
25 self.assertEqual( "dummyPrgParam", self._i.getProgramParameters() ) | |
26 | |
27 if __name__ == "__main__": | |
28 unittest.main() |