#NEWLINE# def test_newlines( self ) : #NEWLINE# #INDENT# for toplevel_def in ( 'def bar():' , 'class Bar(object):' ) : #NEWLINE# #INDENT# for num_newlines in ( 0 , 1 , 3 , 4 ) : #NEWLINE# #INDENT# statement = self . TOPLEVEL . format ( ( '\n' * num_newlines ) , toplevel_def ) #NEWLINE# self . assertNit ( statement , 'T302' ) #NEWLINE# #UNINDENT# statement = self . TOPLEVEL . format ( '\n\n' , toplevel_def ) #NEWLINE# self . assertNoNits ( num_newlines )