#NEWLINE# def test_clear( self ) : #NEWLINE# #INDENT# instance = self . _create_instance ( ) #NEWLINE# self . stats . update_stats_for_instance ( instance ) #NEWLINE# self . assertNotEqual ( 0 , len ( self . stats ) ) #NEWLINE# self . assertEqual ( 1 , len ( self . stats . states ) ) #NEWLINE# self . stats . clear ( ) #NEWLINE# self . assertEqual ( 0 , len ( self . stats ) ) #NEWLINE# self . assertEqual ( 0 , len ( self . stats . states ) )