#NEWLINE# def test_view( self ) : #NEWLINE# #INDENT# doc = GoogleDoc ( ) #NEWLINE# folder = os . path . join ( os . path . dirname ( __file__ ) , 'fixtures' , 'google_doc' ) #NEWLINE# input_path = os . path . join ( folder , 'input.html' ) #NEWLINE# with open ( input_path ) as f : #NEWLINE# #INDENT# input_html = f . read ( ) #NEWLINE# #UNINDENT# doc . set_html ( input_html ) #NEWLINE# self . assertEqual ( doc . _html , input_html ) #NEWLINE# self . assertEqual ( len ( doc . _sections ) , 14 ) #NEWLINE# output_path = os . path . join ( folder , 'navigation.html' ) #NEWLINE# with open ( output_path ) as f : #NEWLINE# #INDENT# self . assertEquals ( doc . _navigation_html ( ) , f . read ( ) )