#NEWLINE# @ editor_open ( __file__ ) #NEWLINE# def test_zoom( editor ) : #NEWLINE# #INDENT# assert ( editor . zoom_level == 0 ) #NEWLINE# editor . zoom_in ( ) #NEWLINE# assert ( editor . zoom_level == 1 ) #NEWLINE# editor . reset_zoom ( ) #NEWLINE# assert ( editor . zoom_level == 0 ) #NEWLINE# editor . zoom_out ( ) #NEWLINE# assert ( editor . zoom_level == ( - 1 ) ) #NEWLINE# while ( abs ( editor . zoom_level ) < ( editor . font_size - 1 ) ) : #NEWLINE# #INDENT# editor . zoom_out ( ) #NEWLINE# if ( abs ( editor . zoom_level ) >= editor . font_size ) : #NEWLINE# #INDENT# lvl = editor . zoom_level #NEWLINE# editor . zoom_out ( ) #NEWLINE# assert ( editor . zoom_level == lvl )