Ejemplo n.º 1
0
 def test_build_tree(self):
     """RdpTaxonAssigner._build_tree() should return a tree with correct Rdp-format taxonomy
     """
     tree = RdpTaxonAssigner._build_tree(self.id_to_taxonomy_file)
     actual = tree.rdp_taxonomy()
     # The order of the lines in this file depends on python's
     # dict() implementation, so we should ideally build two sets
     # of lines and check that their contents match.
     expected = rdp_expected_taxonomy
     self.assertEqual(actual, expected)
Ejemplo n.º 2
0
 def test_build_tree(self):
     """RdpTaxonAssigner._build_tree() should return a tree with correct Rdp-format taxonomy
     """
     tree = RdpTaxonAssigner._build_tree(self.id_to_taxonomy_file)
     actual = tree.rdp_taxonomy()
     # The order of the lines in this file depends on python's
     # dict() implementation, so we should ideally build two sets
     # of lines and check that their contents match.
     expected = rdp_expected_taxonomy
     self.assertEqual(actual, expected)