~ubuntu-branches/ubuntu/wily/python-requests-kerberos/wily

« back to all changes in this revision

Viewing changes to test_requests_kerberos.py

  • Committer: Package Import Robot
  • Author(s): Thomas Goirand
  • Date: 2014-11-10 21:22:51 UTC
  • Revision ID: package-import@ubuntu.com-20141110212251-2q8npdtr2fp92lbo
Tags: 0.5-2
CVE-2014-8650: failure to handle mutual authentication. Applied upstream
patch: CVE-2014-8650_Handle_mutual_authentication.patch (Closes: #768408).
Thanks to Salvatore Bonaccorso <carnil@debian.org> for reporting it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
403
403
            response.connection = connection
404
404
            response._content = ""
405
405
            response.raw = raw
 
406
 
406
407
            auth = requests_kerberos.HTTPKerberosAuth()
 
408
            auth.handle_other = Mock(return_value=response_ok)
 
409
 
407
410
            r = auth.handle_response(response)
408
411
 
409
412
            self.assertTrue(response in r.history)
 
413
            auth.handle_other.assert_called_with(response_ok)
410
414
            self.assertEqual(r, response_ok)
411
415
            self.assertEqual(request.headers['Authorization'], 'Negotiate GSSRESPONSE')
412
416
            connection.send.assert_called_with(request)