#NEWLINE# def test_get_timer_current_duration( self ) : #NEWLINE# #INDENT# timer = TaskTimer ( worker = self . worker , assignment = self . assignment , start_time = self . time ) #NEWLINE# timer . save ( ) #NEWLINE# self . time = ( self . time + datetime . timedelta ( hours = 1 ) ) #NEWLINE# duration = get_timer_current_duration ( self . worker ) #NEWLINE# self . assertEqual ( duration , datetime . timedelta ( hours = 1 ) )