#NEWLINE# def test_fps_limit( self ) : #NEWLINE# #INDENT# clock . set_default ( clock . Clock ( ) ) #NEWLINE# clock . set_fps_limit ( 20 ) #NEWLINE# self . assertTrue ( ( clock . get_fps ( ) == 0 ) ) #NEWLINE# t1 = time . time ( ) #NEWLINE# clock . tick ( ) #NEWLINE# for i in range ( 20 ) : #NEWLINE# #INDENT# clock . tick ( ) #NEWLINE# #UNINDENT# t2 = time . time ( ) #NEWLINE# self . assertTrue ( ( abs ( ( ( self - t1 ) - 1.0 ) ) < 0.05 ) )