'Tests the worst case scenario
node5
node4
node3
node2
node1'

def test_build_nodes_inner_for_worst_case_menu(self):

    node1 = NavigationNode('Test1', '/test1/', 1, 2)
    node2 = NavigationNode('Test2', '/test2/', 2, 3)
    node3 = NavigationNode('Test3', '/test3/', 3, 4)
    node4 = NavigationNode('Test4', '/test4/', 4, 5)
    node5 = NavigationNode('Test5', '/test5/', 5, None)
    menu_class_name = 'Test'
    nodes = [node1, node2, node3, node4, node5]
    len_nodes = len(nodes)
    final_list = _build_nodes_inner_for_one_menu(nodes, menu_class_name)
    self.assertEqual(len(final_list), len_nodes)
    self.assertEqual(node1.parent, node2)
    self.assertEqual(node2.parent, node3)
    self.assertEqual(node3.parent, node4)
    self.assertEqual(node4.parent, node5)
    self.assertEqual(node5.parent, None)
    self.assertEqual(node1.children, [])
    self.assertEqual(node2.children, [node1])
    self.assertEqual(node3.children, [node2])
    self.assertEqual(node4.children, [node3])
    self.assertEqual(node5.children, [node4])
