#NEWLINE# def test_instance_count( self ) : #NEWLINE# #INDENT# self . assertEqual ( 0 , self . stats . num_instances ) #NEWLINE# for i in range ( 5 ) : #NEWLINE# #INDENT# self . stats . _increment ( 'num_instances' ) #NEWLINE# #UNINDENT# self . stats [ 'num_instances' ] -= 1 #NEWLINE# self . assertEqual ( 4 , self . stats . num_instances )