#NEWLINE# def test_auto_now_and_auto_now_add( self ) : #NEWLINE# #INDENT# now = timezone . now ( ) #NEWLINE# past = ( now - datetime . timedelta ( seconds = 2 ) ) #NEWLINE# future = ( now + datetime . timedelta ( seconds = 2 ) ) #NEWLINE# Timestamp . objects . create ( ) #NEWLINE# ts = Timestamp . objects . get ( ) #NEWLINE# self . assertLess ( past , ts . created ) #NEWLINE# self . assertLess ( now , ts . updated ) #NEWLINE# self . assertGreater ( future , ts . updated ) #NEWLINE# self . assertGreater ( future , ts . updated )