'Test root node lookup'

def testRoot(self):

    uids = self.uids
    rows = self.rows
    assertEqual = self.assertEqual
    node = uids['HIERARCHY1-1-1']
    h = S3Hierarchy('test_hierarchy')
    root = h.root(node)
    assertEqual(root, uids['HIERARCHY1'])
    node = uids['HIERARCHY2-1']
    root = h.root(node, classify=True)
    assertEqual(root, (uids['HIERARCHY2'], rows['HIERARCHY2'].category))
    node = uids['HIERARCHY1']
    root = h.root(node)
    assertEqual(root, uids['HIERARCHY1'])
    root = h.root(None)
    assertEqual(root, None)
