mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 00:58:08 +02:00
Test trying to perform challenges with others pending
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user