#NEWLINE# def test_time_a_while_ago( ) : #NEWLINE# #INDENT# dt = datetime . utcnow ( ) #NEWLINE# t = time_a_while_ago ( seconds = 10 ) #NEWLINE# delta = ( dt - t ) #NEWLINE# assert ( t . seconds == 9 ) #NEWLINE# assert ( delta . microseconds > 0 )