mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 08:09:10 +02:00
Clean up tests
This commit is contained in:
@@ -110,11 +110,11 @@ class AuthenticatorTest(unittest.TestCase):
|
||||
@mock.patch("letsencrypt.plugins.manual.sys.stdout")
|
||||
@mock.patch("acme.challenges.SimpleHTTPResponse.simple_verify")
|
||||
@mock.patch("__builtin__.raw_input")
|
||||
def test_disagree_with_ip_logging(self, mock_raw_input, mock_verify, mock_stdout, mock_interaction):
|
||||
mock_verify.return_value = True
|
||||
def test_disagree_with_ip_logging(self, mock_raw_input, mock_verify, mock_stdout,
|
||||
mock_interaction):
|
||||
# pylint: disable=unused-argument
|
||||
mock_interaction().yesno.return_value = False
|
||||
|
||||
resp = challenges.SimpleHTTPResponse(tls=False)
|
||||
with self.assertRaises(errors.PluginError):
|
||||
self.auth.perform(self.achalls)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user