def test_split_tree_info(self):
    'split_tree_info splits lines into header, Trans_table, and dnd'
    tree_info = get_tree_info(Nexus_tree)
    (header, trans_table, dnd) = split_tree_info(tree_info)
    self.assertEqual(len(header), 9)
    self.assertEqual(len(trans_table), 22)
    self.assertEqual(len(dnd), 2)
    self.assertEqual(header[0], 'Begin trees;  [Treefile saved Wednesday, May 5, 2004  5:02 PM]')
    self.assertEqual(header[8], '\tTranslate')
    self.assertEqual(trans_table[0], '\t\t1 outgroup25,')
    self.assertEqual(trans_table[21], '\t\t;')
    self.assertEqual(dnd[0], 'tree PAUP_1 = [&R] (1,(2,(((3,4),(5,(((((6,10),9),(11,18)),((((7,15),19),17),(8,(12,(14,16))))),13))),20)),21);')
split_tree_info splits lines into header, Trans_table, and dnd
def test_split_tree_info(self):
    
    tree_info = get_tree_info(Nexus_tree)
    (header, trans_table, dnd) = split_tree_info(tree_info)
    self.assertEqual(len(header), 9)
    self.assertEqual(len(trans_table), 22)
    self.assertEqual(len(dnd), 2)
    self.assertEqual(header[0], 'Begin trees;  [Treefile saved Wednesday, May 5, 2004  5:02 PM]')
    self.assertEqual(header[8], '\tTranslate')
    self.assertEqual(trans_table[0], '\t\t1 outgroup25,')
    self.assertEqual(trans_table[21], '\t\t;')
    self.assertEqual(dnd[0], 'tree PAUP_1 = [&R] (1,(2,(((3,4),(5,(((((6,10),9),(11,18)),((((7,15),19),17),(8,(12,(14,16))))),13))),20)),21);')