Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix authority test
  • Loading branch information
sgonzalezMSFT committed Oct 25, 2019
commit bc414d70a2edfced1c3cb0033323d363fd1e2c5b
5 changes: 3 additions & 2 deletions tests/test_authority.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@ def test_memorize(self):
# We now pretend this authority supports no User Realm Discovery
class MockResponse(object):
status_code = 404
a.user_realm_discovery("[email protected]", response=MockResponse())
a.user_realm_discovery("[email protected]", "ecbecaf4-1759-498d-ae24-25a98a8eca27", response=MockResponse())
self.assertIn(
"login.microsoftonline.com",
Authority._domains_without_user_realm_discovery,
"user_realm_discovery() should memorize domains not supporting URD")
a.user_realm_discovery("[email protected]",
response="This would cause exception if memorization did not work")
"ecbecaf4-1759-498d-ae24-25a98a8eca27",
response="This would cause exception if memorization did not work")