#NEWLINE# def test_handle_other( self ) : #NEWLINE# #INDENT# with patch ( ( kerberos_module_name + '.authGSSClientStep' ) , clientStep_complete ) : #NEWLINE# #INDENT# response_ok = requests . Response ( ) #NEWLINE# response_ok . url = 'http://www.example.org/' #NEWLINE# response_ok . status_code = 200 #NEWLINE# response_ok . headers = { #NEWLINE# #INDENT# 'www-authenticate' : 'negotiate servertoken' , #NEWLINE# 'authorization' : 'Negotiate GSSRESPONSE' , #NEWLINE# #UNINDENT# } #NEWLINE# auth = requests_kerberos . HTTPKerberosAuth ( ) #NEWLINE# auth . context = { #NEWLINE# #INDENT# 'www.example.org' : 'CTX' , #NEWLINE# #UNINDENT# } #NEWLINE# r = auth . handle_other ( response_ok ) #NEWLINE# self . assertEqual ( r , response_ok ) #NEWLINE# clientStep_complete . assert_called_with ( 'CTX' , 'servertoken' )