#NEWLINE# def test_walk_simple_toc( self ) : #NEWLINE# #INDENT# pages = legacy . pages_compat_shim ( [ ( 'index.md' , 'Home' ) , ( 'about.md' , 'About' ) ] ) #NEWLINE# expected = [ dedent ( '\n                Home - / [*]\n                About - /about/\n            ' ) , dedent ( '\n                Home - /\n                About - /about/ [*]\n            ' ) ] #NEWLINE# site_navigation = nav . SiteNavigation ( pages ) #NEWLINE# for ( index , page ) in enumerate ( site_navigation . walk_pages ( ) ) : #NEWLINE# #INDENT# self . assertEqual ( str ( site_navigation ) . strip ( ) , expected [ index ] )