Test trying to perform challenges with others pending

This commit is contained in:
Seth Schoen 2015-02-06 15:25:12 -08:00
parent 65de5fa71e
commit 5a9e394827

View file

@ -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):