| 1672 | # try digest first (since it's the strongest auth scheme), so we record |
| 1673 | # order of calls here to check digest comes first: |
| 1674 | class RecordingOpenerDirector(OpenerDirector): |
| 1675 | def __init__(self): |
| 1676 | OpenerDirector.__init__(self) |
| 1677 | self.recorded = [] |
| 1678 | |
| 1679 | def record(self, info): |
| 1680 | self.recorded.append(info) |
| 1681 | |
| 1682 | class TestDigestAuthHandler(urllib.request.HTTPDigestAuthHandler): |
| 1683 | def http_error_401(self, *args, **kwds): |
no outgoing calls
searching dependent graphs…