#NEWLINE# def test_since( self ) : #NEWLINE# #INDENT# '\n        The elapsed time since the last refresh.\n        ' #NEWLINE# import datetime #NEWLINE# dt1 = datetime . datetime ( 2013 , 12 , 15 , 10 , 10 , 10 ) #NEWLINE# dt2 = datetime . datetime ( 2013 , 12 , 15 , 10 , 11 , 10 ) #NEWLINE# check_list = health . CheckList ( refresh = 1 ) #NEWLINE# check_list . _refreshed_at = dt1 #NEWLINE# mock_datetime = self . mocker . replace ( datetime ) #NEWLINE# mock_datetime . datetime . now ( ) #NEWLINE# self . mocker . result ( check_list ) #NEWLINE# self . mocker . replay ( ) #NEWLINE# self . assertEqual ( check_list . since ( ) , '0:01:00' )