def test_splice_string_by_charater(self): bio = Bioinfo(test_fasta_dna) self.assertIsInstance(bio.splice_string_by_charaters("A", "T"), list)
def test_splice_string_by_charater_invalid_charater2(self): with self.assertRaises(SystemExit) as cm: bio = Bioinfo(test_fasta_empty) bio.splice_string_by_charaters("", "A") self.assertEqual(cm.exception.code, 1)