Remove test for nonexistent warning

This commit is contained in:
Erica Portnoy 2019-11-25 15:10:03 -08:00
parent 72678ce2a1
commit d9f7f375ff

View file

@ -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()