From d9f7f375ff1d5b1ddad0c5cbab0dcd35d34ff23e Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Mon, 25 Nov 2019 15:10:03 -0800 Subject: [PATCH] Remove test for nonexistent warning --- certbot/tests/client_test.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/certbot/tests/client_test.py b/certbot/tests/client_test.py index cac716854..277ffc3cc 100644 --- a/certbot/tests/client_test.py +++ b/certbot/tests/client_test.py @@ -613,15 +613,6 @@ class EnhanceConfigTest(ClientTestCommon): self._test_with_already_existing() self.assertFalse(mock_log.warning.called) - @mock.patch("certbot._internal.client.enhancements.ask") - @mock.patch("certbot._internal.client.logger") - def test_warn_redirect(self, mock_log, mock_ask): - self.config.redirect = None - mock_ask.return_value = False - self._test_with_already_existing() - self.assertTrue(mock_log.warning.called) - self.assertTrue("disable" in mock_log.warning.call_args[0][0]) - def test_no_ask_hsts(self): self.config.hsts = True self._test_with_all_supported()