'Test root node lookup'

def testRoot(self):

    uids = self.uids
    rows = self.rows
    assertEqual = self.assertEqual
    assertTrue = self.assertTrue
    node = uids['LHIERARCHY1-1-1']
    h = S3Hierarchy('test_lhierarchy')
    root = h.root(node)
    assertEqual(root, uids['LHIERARCHY1'])
    node = uids['LHIERARCHY2-1']
    root = h.root(node, classify=True)
    assertEqual(root, (uids['LHIERARCHY2'], rows['LHIERARCHY2'].category))
    node = uids['LHIERARCHY1']
    root = h.root(node)
    assertEqual(root, uids['LHIERARCHY1'])
    root = h.root(None)
    assertEqual(root, None)
