#NEWLINE# def test_02_measurement( self ) : #NEWLINE# #INDENT# wrapped = measure ( doWait , 'doWait' , 'call' , context = None ) #NEWLINE# waitSeconds = 2 #NEWLINE# result = wrapped ( waitSeconds ) #NEWLINE# m = list ( flask_profiler . collection . filter ( ) ) [ 0 ] #NEWLINE# self . assertEqual ( m [ 'name' ] , 'doWait' ) #NEWLINE# self . assertTrue ( ( float ( m [ 'elapsed' ] ) >= waitSeconds ) )