def test_parse_dna(self):
    f = data_stream('nexus/dna.nex')
    n = Nexus(f)
    taxa = n.taxlabels
    taxa.sort()
    self.assertEqual(len(taxa), 10)
    self.assertEqual(taxa[0], 'Carp')
    self.assertEqual(taxa[(- 1)], 'Whale')
    f.close()
def test_parse_dna(self):
    f = data_stream('nexus/dna.nex')
    n = Nexus(f)
    taxa = n.taxlabels
    taxa.sort()
    self.assertEqual(len(taxa), 10)
    self.assertEqual(taxa[0], 'Carp')
    self.assertEqual(taxa[(- 1)], 'Whale')
    f.close()