#NEWLINE# def test_expired_token( self ) : #NEWLINE# #INDENT# self . backend . max_age = ( - 10 ) #NEWLINE# token = self . backend . create_token ( self . user ) #NEWLINE# user = self . backend . parse_token ( token ) #NEWLINE# self . assertEqual ( user , None ) #NEWLINE# self . assertIn ( 'Expired token' , self . get_log ( ) )