(self, realm, authuri)
| 819 | self.passwd[realm][reduced_uri] = (user, passwd) |
| 820 | |
| 821 | def find_user_password(self, realm, authuri): |
| 822 | domains = self.passwd.get(realm, {}) |
| 823 | for default_port in True, False: |
| 824 | reduced_authuri = self.reduce_uri(authuri, default_port) |
| 825 | for uris, authinfo in domains.items(): |
| 826 | for uri in uris: |
| 827 | if self.is_suburi(uri, reduced_authuri): |
| 828 | return authinfo |
| 829 | return None, None |
| 830 | |
| 831 | def reduce_uri(self, uri, default_port=True): |
| 832 | """Accept authority or URI and extract only the authority and path.""" |
no test coverage detected