Mercurial > repos > yufei-luo > s_mart
comparison commons/launcher/tests/Test_BlatClusterLauncher.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.BlatClusterLauncher import BlatClusterLauncher | |
3 | |
4 | |
5 class Test_BlatClusterLauncher( unittest.TestCase ): | |
6 | |
7 def setUp( self ): | |
8 self._i = BlatClusterLauncher() | |
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 -s: name of the subject file (format='fasta')" | |
19 exp += "\n -p: parameters for 'blat'" | |
20 exp += "\n -Z: concatenate output files" | |
21 exp += "\n -A: same sequences (all-by-all)" | |
22 obs = self._i.getSpecificHelpAsString() | |
23 self.assertEqual( exp, obs ) | |
24 | |
25 | |
26 def test_setASpecificAttributeFromCmdLine( self ): | |
27 self._i.setASpecificAttributeFromCmdLine( "-s", "dummySubjectFile.fa" ) | |
28 self.assertEqual( "dummySubjectFile.fa", self._i.getSubjectFile() ) | |
29 | |
30 | |
31 test_suite = unittest.TestSuite() | |
32 test_suite.addTest( unittest.makeSuite( Test_BlatClusterLauncher ) ) | |
33 if __name__ == "__main__": | |
34 unittest.TextTestRunner(verbosity=2).run( test_suite ) |