#NEWLINE# def test_indented_toc_missing_child_title( self ) : #NEWLINE# #INDENT# pages = legacy . pages_compat_shim ( [ ( 'index.md' , 'Home' ) , ( 'api-guide/running.md' , 'API Guide' , 'Running' ) , ( 'api-guide/testing.md' , 'API Guide' ) , ( 'api-guide/debugging.md' , 'API Guide' , 'Debugging' ) , ( 'about/release-notes.md' , 'About' , 'Release notes' ) , ( 'about/license.md' , 'About' , 'License' ) ] ) #NEWLINE# expected = dedent ( '\n        Home - /\n        API Guide\n            Running - /api-guide/running/\n            Testing - /api-guide/testing/\n            Debugging - /api-guide/debugging/\n        About\n            Release notes - /about/release-notes/\n            License - /about/license/\n        ' ) #NEWLINE# site_navigation = nav . SiteNavigation ( pages ) #NEWLINE# self . assertEqual ( str ( site_navigation ) . strip ( ) , expected ) #NEWLINE# self . assertEqual ( len ( expected . nav_items ) , 3 ) #NEWLINE# self . assertEqual ( len ( site_navigation . pages ) , 6 )