def test_parse_trans_table(self):
    'parse_trans_table returns a dict with the taxa names indexed by number'
    tree_info = get_tree_info(Nexus_tree)
    (header, trans_table, dnd) = split_tree_info(tree_info)
    Trans_table = parse_trans_table(trans_table)
    self.assertEqual(len(Trans_table), 21)
    self.assertEqual(Trans_table['1'], 'outgroup25')
    self.assertEqual(Trans_table['2'], 'AF078391l')
    self.assertEqual(Trans_table['3'], 'AF078211af')
    self.assertEqual(Trans_table['4'], 'AF078393l')
    self.assertEqual(Trans_table['5'], 'AF078187af')
    self.assertEqual(Trans_table['6'], 'AF078320l')
    self.assertEqual(Trans_table['21'], 'outgroup258')
    self.assertEqual(Trans_table['20'], 'AF078179af')
    self.assertEqual(Trans_table['19'], 'AF078251af')
parse_trans_table returns a dict with the taxa names indexed by number
def test_parse_trans_table(self):
    
    tree_info = get_tree_info(Nexus_tree)
    (header, trans_table, dnd) = split_tree_info(tree_info)
    Trans_table = parse_trans_table(trans_table)
    self.assertEqual(len(Trans_table), 21)
    self.assertEqual(Trans_table['1'], 'outgroup25')
    self.assertEqual(Trans_table['2'], 'AF078391l')
    self.assertEqual(Trans_table['3'], 'AF078211af')
    self.assertEqual(Trans_table['4'], 'AF078393l')
    self.assertEqual(Trans_table['5'], 'AF078187af')
    self.assertEqual(Trans_table['6'], 'AF078320l')
    self.assertEqual(Trans_table['21'], 'outgroup258')
    self.assertEqual(Trans_table['20'], 'AF078179af')
    self.assertEqual(Trans_table['19'], 'AF078251af')