#NEWLINE# def test_handle_response_200_mutual_auth_required_failure( self ) : #NEWLINE# #INDENT# with patch ( ( kerberos_module_name + '.authGSSClientStep' ) , clientStep_error ) : #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# #NEWLINE# #UNINDENT# } #NEWLINE# auth = requests_kerberos . HTTPKerberosAuth ( ) #NEWLINE# auth . context = { #NEWLINE# #INDENT# 'www.example.org' : 'CTX' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( requests_kerberos . MutualAuthenticationError , response_ok . handle_response , response_ok ) #NEWLINE# self . assertFalse ( clientStep_error . called )