mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 00:32:12 -04:00
test_disagree_with_ip_logging: make it fail nicely
This commit is contained in:
parent
0a5303ccf0
commit
3f22e0d6f2
1 changed files with 3 additions and 1 deletions
|
|
@ -64,8 +64,10 @@ class AuthenticatorTest(unittest.TestCase):
|
|||
self.assertEqual([None], self.auth.perform(self.achalls))
|
||||
|
||||
@mock.patch("letsencrypt.plugins.manual.zope.component.getUtility")
|
||||
def test_disagree_with_ip_logging(self, mock_interaction):
|
||||
@mock.patch("letsencrypt.plugins.manual.Authenticator._notify_and_wait")
|
||||
def test_disagree_with_ip_logging(self, mock_notify, mock_interaction):
|
||||
mock_interaction().yesno.return_value = False
|
||||
mock_notify.side_effect = errors.Error("Exception not raised, continued execution even after disagreeing with IP logging")
|
||||
|
||||
self.assertRaises(errors.PluginError, self.auth.perform, self.achalls)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue