'Test lookup of sibling nodes'

def testSiblings(self):

    uids = self.uids
    ids = self.ids
    links = self.links
    assertEqual = self.assertEqual
    h = S3Hierarchy('test_lhierarchy')
    for uid in uids:
        parent = links[uid].parent_id
        siblings = set((node for (node, _uid) in ids.items() if (links[_uid].parent_id == parent)))
        assertEqual(h.siblings(uids[uid], inclusive=True), siblings)
        siblings.discard(uids[uid])
        assertEqual(h.siblings(uids[uid], inclusive=False), siblings)
