mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
add test for other challenges
This commit is contained in:
parent
1999f10ce5
commit
c20dcf6918
1 changed files with 9 additions and 0 deletions
|
|
@ -44,6 +44,15 @@ class ChallengeFactoryTest(unittest.TestCase):
|
|||
|
||||
assert [achall.chall for achall in achalls] == [acme_util.HTTP01]
|
||||
|
||||
def test_unrecognized(self):
|
||||
authzr = acme_util.gen_authzr(
|
||||
messages.STATUS_PENDING, "test",
|
||||
[mock.Mock(chall="chall", typ="unrecognized")],
|
||||
[messages.STATUS_PENDING])
|
||||
|
||||
achalls = self.handler._challenge_factory(authzr, [0])
|
||||
assert type(achalls[0]) == achallenges.Other
|
||||
|
||||
|
||||
class HandleAuthorizationsTest(unittest.TestCase):
|
||||
"""handle_authorizations test.
|
||||
|
|
|
|||
Loading…
Reference in a new issue