Exemplo n.º 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')
Exemplo n.º 2
0
 def test_types3(self):
     with self.assertRaises(TypeError):
         utils.n_inversion(0, 0, 0, 0, 0)
Exemplo n.º 3
0
 def test_types2(self):
     with self.assertRaises(TypeError):
         utils.n_inversion('ATGGAC', '', 0, 0, 0)
Exemplo n.º 4
0
 def test_types(self):
     with self.assertRaises(TypeError):
         utils.n_inversion('ATGGAC', 'GG', 'AA', '3', 3)
Exemplo n.º 5
0
 def test_end_incorrect(self):
     output = utils.n_inversion('ATGGAC', 'GG', 'AA', 3, 3)
     self.assertEqual(output, 'error')
Exemplo n.º 6
0
 def test_correct(self):
     output = utils.n_inversion('ATGGAC', 'GG', 'AA', 3, 4)
     self.assertEqual(output, 'ATAAAC')
Exemplo n.º 7
0
 def test_empty3(self):
     output = utils.n_inversion('ATGGAC', '', '', 1, 0)
     self.assertEqual(output, 'ATGGAC')
Exemplo n.º 8
0
 def test_empty(self):
     output = utils.n_inversion('', '', '', 0, 0)
     self.assertEqual(output, '')