'Test preprocessing of a create-node request'

def testPreprocessCreateNode(self):

    r = s3_request('test', 'lhierarchy', http='POST')
    parent_node = self.rows['LHIERARCHY1']
    h = S3Hierarchy('test_lhierarchy')
    link = h.preprocess_create_node(r, parent_node.id)
    self.assertNotEqual(link, None)
    assertEqual = self.assertEqual
    assertEqual(link['linktable'], 'test_lhierarchy_link')
    assertEqual(link['lkey'], 'child_id')
    assertEqual(link['rkey'], 'parent_id')
    assertEqual(link['parent_id'], parent_node.id)
