'Given the tree:
|- Home
| |- Projects (SOFTROOT)
| | |- django CMS
| | |- django Shop
| |- People
Expected menu when on "django CMS" (0 100 100 100):
|- Projects (SOFTROOT)
| |- django CMS
| |- django Shop'

def test_basic_djangocms(self):

    stdkwargs = {'template': 'nav_playground.html', 'language': 'en', 'published': True, 'in_navigation': True}
    home = create_page('Home', **stdkwargs)
    projects = create_page('Projects', parent=home, soft_root=True, **stdkwargs)
    djangocms = create_page('django    CMS', parent=projects, **stdkwargs)
    djangoshop = create_page('django    Shop', parent=projects, **stdkwargs)
    create_page('People', parent=home, **stdkwargs)
    context = self.get_context(djangocms.get_absolute_url(), page=djangocms.publisher_public)
    tpl = Template('{%    load    menu_tags    %}{%    show_menu    0    100    100    100    %}')
    tpl.render(context)
    nodes = context['children']
    self.assertEqual(len(nodes), 1)
    projectsnode = nodes[0]
    self.assertEqual(projectsnode.id, projects.publisher_public.pk)
    self.assertEqual(len(projectsnode.children), 2)
    (cmsnode, shopnode) = projectsnode.children
    self.assertEqual(cmsnode.id, djangocms.publisher_public.pk)
    self.assertEqual(shopnode.id, djangoshop.publisher_public.pk)
    self.assertEqual(len(cmsnode.children), 0)
    self.assertEqual(len(shopnode.children), 0)
