def test_splice_string_by_position(self): bio = Bioinfo(test_fasta_dna) self.assertTrue(bio.splice_string_by_position(3), list)
def test_splice_string_by_position_step_to_big(self): with self.assertRaises(SystemExit) as cm: bio = Bioinfo(test_fasta_empty) bio.splice_string_by_position(0,2) self.assertEqual(cm.exception.code, 1)