#NEWLINE# def testRemaining( self ) : #NEWLINE# #INDENT# start = time . time ( ) #NEWLINE# limit = 5 #NEWLINE# timer = Timer ( limit = limit ) #NEWLINE# self . assertEqual ( round ( timer . remaining , 2 ) , round ( ( ( limit - time . time ( ) ) + start ) , 2 ) ) #NEWLINE# time . sleep ( 1 ) #NEWLINE# self . assertEqual ( round ( timer . remaining , 2 ) , round ( ( ( limit - time . time ( ) ) + start ) , 2 ) )