#NEWLINE# def test_revoke_access_token( self ) : #NEWLINE# #INDENT# r = self . login ( 'popular' ) #NEWLINE# r = self . client . get ( '/api/tokens' , { #NEWLINE# #INDENT# '_nonce' : util . create_nonce ( 'popular' , 'oauth_revoke_access_token' ) , #NEWLINE# 'oauth_revoke_access_token' : '' , #NEWLINE# 'key' : 'POPULARDESKTOPACCESSTOKEN' , #NEWLINE# 'confirm' : 1 , #NEWLINE# #UNINDENT# } ) #NEWLINE# r = self . assertRedirectsPrefix ( r , '/api/tokens' ) #NEWLINE# self . assertTemplateUsed ( r , 'api/templates/tokens.html' ) #NEWLINE# self . assertContains ( r , 'token revoked' ) #NEWLINE# self . assertNotContains ( r , 'POPULARDESKTOPACCESSTOKEN' ) #NEWLINE# self . assertWellformed ( r )