snapshot of 4.0a development. initial git repo commit
[erange.git] / test / testMakeBamFromRds.py
1 '''
2 Created on Jun 4, 2010
3
4 @author: sau
5 '''
6 import unittest
7 from Erange import MakeBamFromRds
8
9
10 class TestMakeBamFromRds(unittest.TestCase):
11
12
13     def setUp(self):
14         pass
15
16
17     def tearDown(self):
18         pass
19
20
21     def testGetMismatches(self):
22         mismatchString = "3A10T"
23         self.assertEqual(mismatchString, MakeBamFromRds.getMismatches("A3G, T10A"))
24
25         mismatchString = ""
26         self.assertEqual(mismatchString, MakeBamFromRds.getMismatches(""))
27
28
29 def suite():
30     suite = unittest.TestSuite()
31     suite.addTest(unittest.makeSuite(TestMakeBamFromRds))
32
33     return suite
34
35
36 if __name__ == "__main__":
37     #import sys;sys.argv = ['', 'Test.testName']
38     unittest.main()