mirror of
https://github.com/certbot/certbot.git
synced 2026-06-11 09:40:41 -04:00
Test trying to perform challenges with others pending
This commit is contained in:
parent
65de5fa71e
commit
5a9e394827
1 changed files with 7 additions and 0 deletions
|
|
@ -338,6 +338,13 @@ class PerformTest(unittest.TestCase):
|
|||
self.assertEqual(result, [None, None, False])
|
||||
self.authenticator.start_listener.assert_called_once_with(443, key)
|
||||
|
||||
def test_perform_with_pending_tasks(self):
|
||||
self.authenticator.tasks = {"foononce.acme.invalid": "cert_data"}
|
||||
extra_challenge = DvsniChall("a", "b", "c", "d")
|
||||
with self.assertRaises(Exception):
|
||||
self.authenticator.perform([extra_challenge])
|
||||
|
||||
|
||||
class StartListenerTest(unittest.TestCase):
|
||||
"""Tests for start_listener() method."""
|
||||
def setUp(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue