#NEWLINE# def test_valid_get( self ) : #NEWLINE# #INDENT# 'Ensure user can logout via get' #NEWLINE# s = self . client . session #NEWLINE# s [ 'exit_users_pk' ] = [ [ '1' , 'django.contrib.auth.backends.ModelBackend' ] ] #NEWLINE# s . save ( ) #NEWLINE# response = self . client . get ( reverse ( 'su_logout' ) ) #NEWLINE# self . assertEqual ( response . status_code , 302 ) #NEWLINE# self . assertIn ( auth . SESSION_KEY , s . client . session ) #NEWLINE# self . assertEqual ( str ( self . client . session [ auth . SESSION_KEY ] ) , str ( self . authorized_user . id ) )