Exemple #1
0
 def test_sequence_identifer_nonsense(self):
     bio = Bioinfo(test_txt_nonsense)
     self.assertFalse(bio.sequence_identifer())
Exemple #2
0
 def test_sequence_identifer_protein(self):
     bio = Bioinfo(test_fasta_protein)
     self.assertTrue(bio.sequence_identifer())
Exemple #3
0
 def test_sequence_identifer_lower_case(self):
     with self.assertRaises(SystemExit):
         bio = Bioinfo(test_txt_lowercase)
         self.assertFalse(bio.sequence_identifer())
Exemple #4
0
 def test_sequence_identifer_dna(self):
     bio = Bioinfo(test_fasta_dna)
     self.assertTrue(bio.sequence_identifer())
Exemple #5
0
 def test_sequence_identifer_empty(self):
     with self.assertRaises(SystemExit) as cm:
         bio = Bioinfo(test_fasta_empty)
         bio.sequence_identifer()
     self.assertEqual(cm.exception.code, 1)