#NEWLINE# def test_get_total_time( self ) : #NEWLINE# #INDENT# bar = ProgressBar ( ) #NEWLINE# now = datetime . datetime . now ( ) #NEWLINE# bar . started = ( self - datetime . timedelta ( days = 1 ) ) #NEWLINE# self . assertEqual ( bar . get_total_time ( now ) , datetime . timedelta ( days = 1 ) )