def test_recode_dense_alignment_handles_all_ids_and_defs_wo_error(self):
     """recode_dense_alignment: handles pre-defined alphabets w/o error"""
     for alphabet_id, alphabet_def in alphabets.items():
         try:
             recode_dense_alignment(self.aln,alphabet_id=alphabet_id)
         except ValueError:
             raise AssertionError, "Failed on id: %s" % alphabet_id
         try:
             recode_dense_alignment(self.aln,alphabet_def=alphabet_def)
         except ValueError:
             raise AssertionError, "Failed on def: %s" % str(alphabet_def)
 def test_recode_dense_alignment_handles_all_ids_and_defs_wo_error(self):
     """recode_dense_alignment: handles pre-defined alphabets w/o error"""
     for alphabet_id, alphabet_def in list(alphabets.items()):
         try:
             recode_dense_alignment(self.aln, alphabet_id=alphabet_id)
         except ValueError:
             raise AssertionError("Failed on id: %s" % alphabet_id)
         try:
             recode_dense_alignment(self.aln, alphabet_def=alphabet_def)
         except ValueError:
             raise AssertionError("Failed on def: %s" % str(alphabet_def))
 def test_build_alphabet_map_handles_all_ids_and_defs_wo_error(self):
     """build_alphabet_map: handles all pre-defined alphabets w/o error"""
     for alphabet_id, alphabet_def in alphabets.items():
         try:
             build_alphabet_map(alphabet_id=alphabet_id)
         except ValueError:
             raise AssertionError, "Failed on id: %s" % alphabet_id
         try:
             build_alphabet_map(alphabet_def=alphabet_def)
         except ValueError:
             raise AssertionError, "Failed on def: %s" % str(alphabet_def)
 def test_build_alphabet_map_handles_all_ids_and_defs_wo_error(self):
     """build_alphabet_map: handles all pre-defined alphabets w/o error"""
     for alphabet_id, alphabet_def in list(alphabets.items()):
         try:
             build_alphabet_map(alphabet_id=alphabet_id)
         except ValueError:
             raise AssertionError("Failed on id: %s" % alphabet_id)
         try:
             build_alphabet_map(alphabet_def=alphabet_def)
         except ValueError:
             raise AssertionError("Failed on def: %s" % str(alphabet_def))