#NEWLINE# def test_sample_100( self ) : #NEWLINE# #INDENT# sample = ExponentiallyDecayingSample ( 1000 , 0.01 ) #NEWLINE# for i in range ( 100 ) : #NEWLINE# #INDENT# sample . update ( self ) #NEWLINE# #UNINDENT# self . assertEqual ( sample . size ( ) , 100 ) #NEWLINE# snapshot = sample . snapshot ( ) #NEWLINE# self . assertEqual ( snapshot . size ( ) , 100 ) #NEWLINE# for value in snapshot . values : #NEWLINE# #INDENT# self . assertTrue ( ( value < 100.0 ) ) #NEWLINE# self . assertTrue ( ( value >= 0.0 ) )