'Test parent lookup'

def testParent(self):

    ids = self.ids
    uids = self.uids
    rows = self.rows
    assertEqual = self.assertEqual
    h = S3Hierarchy('test_hierarchy')
    for uid in uids:
        (parent, category) = h.parent(uids[uid], classify=True)
        assertEqual(parent, rows[uid].parent)
        if parent:
            parent_uid = ids[parent]
            assertEqual(category, rows[parent_uid].category)
