(self)
| 1713 | self.assertEqual(opener.recorded, ["digest", "basic"]*2) |
| 1714 | |
| 1715 | def test_unsupported_auth_digest_handler(self): |
| 1716 | opener = OpenerDirector() |
| 1717 | # While using DigestAuthHandler |
| 1718 | digest_auth_handler = urllib.request.HTTPDigestAuthHandler(None) |
| 1719 | http_handler = MockHTTPHandlerRedirect( |
| 1720 | 401, 'WWW-Authenticate: Kerberos\r\n\r\n') |
| 1721 | opener.add_handler(digest_auth_handler) |
| 1722 | opener.add_handler(http_handler) |
| 1723 | self.assertRaises(ValueError, opener.open, "http://www.example.com") |
| 1724 | |
| 1725 | def test_unsupported_auth_basic_handler(self): |
| 1726 | # While using BasicAuthHandler |
nothing calls this directly
no test coverage detected