Exemplo n.º 1
0
 def test_change_characters_tuple_as_template(self):
     bio = Bioinfo(test_fasta_dna)
     self.assertTrue(bio.change_characters(test_tuple, test_dict))
Exemplo n.º 2
0
 def test_change_characters_list_as_translate_dict(self):
         with self.assertRaises(SystemExit) as cm:
             bio = Bioinfo(test_fasta_dna)
             bio.change_characters(test_string, test_list)
         self.assertEqual(cm.exception.code, 1)
Exemplo n.º 3
0
 def test_change_characters_dict_as_template(self):
     with self.assertRaises(SystemExit) as cm:
         bio = Bioinfo(test_fasta_dna)
         bio.change_characters(test_dict, test_dict)
     self.assertEqual(cm.exception.code, 1)
Exemplo n.º 4
0
 def test_change_characters_dict_as_translate_dict(self):
     bio = Bioinfo(test_fasta_dna)
     self.assertTrue(bio.change_characters(test_string, test_dict))