#NEWLINE# def test_invite_email_reject_logged_in( self ) : #NEWLINE# #INDENT# r = self . login_and_get ( 'hermit' , ( '/invite/email/%s' % self . actor_code ) ) #NEWLINE# r = self . client . post ( ( '/invite/email/%s' % self . actor_code ) , { #NEWLINE# #INDENT# 'invite_reject' : '' , #NEWLINE# 'nick' : 'hermit' , #NEWLINE# 'code' : self . actor_code , #NEWLINE# '_nonce' : util . create_nonce ( 'hermit' , 'invite_reject' ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# r = self . assertRedirectsPrefix ( r , '/user/hermit/overview' ) #NEWLINE# self . assertContains ( r , 'rejected' ) #NEWLINE# self . assertWellformed ( r ) #NEWLINE# self . assertTemplateUsed ( r , 'actor/templates/overview.html' ) #NEWLINE# r = self . client . get ( ( '/invite/email/%s' % self . actor_code ) ) #NEWLINE# r = self . assertRedirectsPrefix ( r , '/error' )