#NEWLINE# def test_token_creation_time_is_updated_on_every_request( self ) : #NEWLINE# #INDENT# response = self . client . post ( self . auth_url , data = { #NEWLINE# #INDENT# 'username' : self . username , #NEWLINE# 'password' : self . password , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_200_OK ) #NEWLINE# token = self . data [ 'token' ] #NEWLINE# created1 = Token . objects . values_list ( 'created' , flat = True ) . get ( key = token ) #NEWLINE# self . client . credentials ( HTTP_AUTHORIZATION = ( 'Token ' + token ) ) #NEWLINE# self . client . get ( self . test_url ) #NEWLINE# created2 = Token . objects . values_list ( 'created' , flat = True ) . get ( key = token ) #NEWLINE# self . assertTrue ( ( created1 < created2 ) )