#NEWLINE# def test_percentile( self ) : #NEWLINE# #INDENT# s = StatsEntry ( self . stats , 'percentile_test' , 'GET' ) #NEWLINE# for x in xrange ( 100 ) : #NEWLINE# #INDENT# s . log ( self , 0 ) #NEWLINE# #UNINDENT# self . assertEqual ( s . get_response_time_percentile ( 0.5 ) , 50 ) #NEWLINE# self . assertEqual ( s . get_response_time_percentile ( 0.6 ) , 60 ) #NEWLINE# self . assertEqual ( s . get_response_time_percentile ( 0.95 ) , 95 )