'Test lookup of sibling nodes'

def testSiblings(self):

    uids = self.uids
    rows = self.rows
    assertEqual = self.assertEqual
    h = S3Hierarchy('test_hierarchy')
    for uid in uids:
        parent = rows[uid].parent
        siblings = set((row.id for row in rows.values() if (row.parent == parent)))
        assertEqual(h.siblings(uids[uid], inclusive=True), siblings)
        siblings.discard(uids[uid])
        assertEqual(h.siblings(uids[uid], inclusive=False), siblings)
