'Test hierarchy construction'

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())))
