diff options
Diffstat (limited to 'tests/oauth2/test_challenges.py')
-rw-r--r-- | tests/oauth2/test_challenges.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/oauth2/test_challenges.py b/tests/oauth2/test_challenges.py index 019b908..412895a 100644 --- a/tests/oauth2/test_challenges.py +++ b/tests/oauth2/test_challenges.py @@ -130,3 +130,11 @@ def test_password_challenge(getpass_mock): assert challenges.PasswordChallenge().obtain_challenge_input({}) == { "credential": " " } + + +def test_saml_challenge(): + challenge = challenges.SamlChallenge() + assert challenge.is_locally_eligible + assert challenge.name == "SAML" + with pytest.raises(exceptions.ReauthSamlChallengeFailError): + challenge.obtain_challenge_input(None) |