Clean up tests

This commit is contained in:
Liam Marshall
2015-10-25 15:37:23 -05:00
parent 7e94876f73
commit 17bd379017
+3 -3
View File
@@ -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)