Home | History | Annotate | Download | only in test

Lines Matching refs:realm

118     >>> add("Some Realm", "http://example.com/", "joe", "password")
119 >>> add("Some Realm", "http://example.com/ni", "ni", "ni")
125 >>> add("Some Realm", "http://c.example.com:3128", "3", "c")
126 >>> add("Some Realm", "d.example.com", "4", "d")
127 >>> add("Some Realm", "e.example.com:3128", "5", "e")
129 >>> mgr.find_user_password("Some Realm", "example.com")
131 >>> mgr.find_user_password("Some Realm", "http://example.com")
133 >>> mgr.find_user_password("Some Realm", "http://example.com/")
135 >>> mgr.find_user_password("Some Realm", "http://example.com/spam")
137 >>> mgr.find_user_password("Some Realm", "http://example.com/spam/spam")
147 ## >>> mgr.find_user_password("Some Realm", "http://example.com/ni")
164 >>> mgr.find_user_password("Some Realm", "c.example.com")
166 >>> mgr.find_user_password("Some Realm", "c.example.com:3128")
168 >>> mgr.find_user_password("Some Realm", "http://c.example.com:3128")
170 >>> mgr.find_user_password("Some Realm", "d.example.com")
172 >>> mgr.find_user_password("Some Realm", "e.example.com:3128")
434 def add_password(self, realm, uri, user, password):
435 self.realm = realm
439 def find_user_password(self, realm, authuri):
440 self.target_realm = realm
1100 realm = "ACME Widget Store"
1102 401, 'WWW-Authenticate: Basic realm=%s%s%s\r\n\r\n' %
1103 (quote_char, realm, quote_char) )
1107 realm, http_handler, password_manager,
1119 realm = "ACME Widget Store"
1121 401, 'WWW-Authenticate: Basic realm=%s\r\n\r\n' % realm)
1124 msg = "Basic Auth Realm was unquoted"
1127 realm, http_handler, password_manager,
1139 realm = "ACME Networks"
1141 407, 'Proxy-Authenticate: Basic realm="%s"\r\n\r\n' % realm)
1145 realm, http_handler, password_manager,
1180 realm = "ACME Networks"
1182 401, 'WWW-Authenticate: Basic realm="%s"\r\n\r\n' % realm)
1189 realm, http_handler, password_manager,
1198 realm, http_handler, password_manager,
1204 auth_handler.add_password(realm, request_url, user, password)
1205 self.assertEqual(realm, password_manager.realm)
1213 self.assertEqual(password_manager.target_realm, realm)