From 3f22e0d6f2b89f6ee3d36f882b0de2b58d937880 Mon Sep 17 00:00:00 2001 From: Liam Marshall Date: Sun, 25 Oct 2015 16:32:56 -0500 Subject: [PATCH] test_disagree_with_ip_logging: make it fail nicely --- letsencrypt/plugins/manual_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/letsencrypt/plugins/manual_test.py b/letsencrypt/plugins/manual_test.py index 673942799..e04ff3594 100644 --- a/letsencrypt/plugins/manual_test.py +++ b/letsencrypt/plugins/manual_test.py @@ -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)