def testHierarchyConstruction(self):

        uids = self.uids

        h = S3Hierarchy("test_lhierarchy")

        assertEqual = self.assertEqual
        assertTrue = self.assertTrue

        roots = h.roots
        assertEqual(len(roots), 2)
        assertTrue(uids["LHIERARCHY1"] in roots)
        assertTrue(uids["LHIERARCHY2"] in roots)

        nodes = h.nodes
        assertEqual(len(nodes), len(uids))
        assertTrue(all(node_id in nodes for node_id in uids.values()))

    # -------------------------------------------------------------------------
Test hierarchy construction
dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3hierarchy.py/S3LinkedHierarchyTests.testHierarchyConstruction