def test_parse_dnd(self):
    'parse_dnd returns a dict with dnd indexed by tree name'
    tree_info = get_tree_info(Nexus_tree)
    (header, trans_table, dnd) = split_tree_info(tree_info)
    dnd_dict = parse_dnd(dnd)
    self.assertEqual(dnd_dict['tree PAUP_1'], '(1,(2,(((3,4),(5,(((((6,10),9),(11,18)),((((7,15),19),17),(8,(12,(14,16))))),13))),20)),21);')
parse_dnd returns a dict with dnd indexed by tree name
def test_parse_dnd(self):
    
    tree_info = get_tree_info(Nexus_tree)
    (header, trans_table, dnd) = split_tree_info(tree_info)
    dnd_dict = parse_dnd(dnd)
    self.assertEqual(dnd_dict['tree PAUP_1'], '(1,(2,(((3,4),(5,(((((6,10),9),(11,18)),((((7,15),19),17),(8,(12,(14,16))))),13))),20)),21);')