diff --git a/test_requests_kerberos.py b/test_requests_kerberos.py index 0077223..23531e0 100644 --- a/test_requests_kerberos.py +++ b/test_requests_kerberos.py @@ -568,7 +568,7 @@ class KerberosTestCase(unittest.TestCase): principal=None) def test_delegation(self): - with patch.multiple('kerberos', + with patch.multiple(kerberos_module_name, authGSSClientInit=clientInit_complete, authGSSClientResponse=clientResponse, authGSSClientStep=clientStep_continue): @@ -624,7 +624,7 @@ class KerberosTestCase(unittest.TestCase): response.headers = {'www-authenticate': 'negotiate token'} host = urlparse(response.url).hostname auth = requests_kerberos.HTTPKerberosAuth(principal="user@REALM") - auth.generate_request_header(response, host), + auth.generate_request_header(response, host) clientInit_complete.assert_called_with( "HTTP@www.example.org", gssflags=( @@ -642,7 +642,7 @@ class KerberosTestCase(unittest.TestCase): response.headers = {'www-authenticate': 'negotiate token'} host = urlparse(response.url).hostname auth = requests_kerberos.HTTPKerberosAuth(hostname_override="otherhost.otherdomain.org") - auth.generate_request_header(response, host), + auth.generate_request_header(response, host) clientInit_complete.assert_called_with( "HTTP@otherhost.otherdomain.org", gssflags=(