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