#NEWLINE# def test_generate_site_navigation( self ) : #NEWLINE# #INDENT# '\n        Verify inferring page titles based on the filename\n        ' #NEWLINE# pages = [ 'index.md' , 'api-guide/running.md' , 'about/notes.md' , 'about/sub/license.md' ] #NEWLINE# url_context = nav . URLContext ( ) #NEWLINE# ( nav_items , pages ) = nav . _generate_site_navigation ( pages , url_context ) #NEWLINE# self . assertEqual ( [ n . title for n in nav_items ] , [ 'Home' , 'Running' , 'Notes' , 'License' ] ) #NEWLINE# self . assertEqual ( [ p . title for p in pages ] , [ 'Home' , 'Running' , 'Notes' , 'License' ] )