예제 #1
0
 def test_empty2(self):
     """
     Warning this output might need checking.
     Passing in 0 as first integer becomes -1 which has meaning!
     """
     output = utils.n_inversion('ATGGAC', '', '', 0, 0)
     self.assertEqual(output, 'ATGGAATGGAC')
예제 #2
0
 def test_types3(self):
     with self.assertRaises(TypeError):
         utils.n_inversion(0, 0, 0, 0, 0)
예제 #3
0
 def test_types2(self):
     with self.assertRaises(TypeError):
         utils.n_inversion('ATGGAC', '', 0, 0, 0)
예제 #4
0
 def test_types(self):
     with self.assertRaises(TypeError):
         utils.n_inversion('ATGGAC', 'GG', 'AA', '3', 3)
예제 #5
0
 def test_end_incorrect(self):
     output = utils.n_inversion('ATGGAC', 'GG', 'AA', 3, 3)
     self.assertEqual(output, 'error')
예제 #6
0
 def test_correct(self):
     output = utils.n_inversion('ATGGAC', 'GG', 'AA', 3, 4)
     self.assertEqual(output, 'ATAAAC')
예제 #7
0
 def test_empty3(self):
     output = utils.n_inversion('ATGGAC', '', '', 1, 0)
     self.assertEqual(output, 'ATGGAC')
예제 #8
0
 def test_empty(self):
     output = utils.n_inversion('', '', '', 0, 0)
     self.assertEqual(output, '')