#NEWLINE# def test_a_while_ago( ) : #NEWLINE# #INDENT# dt = time . mktime ( time . gmtime ( ) ) #NEWLINE# then = a_while_ago ( seconds = 10 ) #NEWLINE# t = time . mktime ( str_to_time ( dt ) ) #NEWLINE# delta = ( dt - t ) #NEWLINE# assert ( delta == 10 )