From eb6db049f0606333bb2b87e64d314f6a856df096 Mon Sep 17 00:00:00 2001 From: Alex Zorin Date: Thu, 3 Dec 2020 16:35:46 +1100 Subject: [PATCH] use better asserts --- certbot-apache/tests/configurator_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/certbot-apache/tests/configurator_test.py b/certbot-apache/tests/configurator_test.py index 9edc68ba6..f4499c307 100644 --- a/certbot-apache/tests/configurator_test.py +++ b/certbot-apache/tests/configurator_test.py @@ -1630,7 +1630,7 @@ class MultiVhostsTest(util.ApacheTest): self.assertTrue(commented_rewrite_rule in conf_text) self.assertTrue(uncommented_rewrite_rule in conf_text) self.assertEqual(mock_notify.call_count, 1) - self.assertTrue("Some rewrite rules" in mock_notify.call_args[0][0]) + self.assertIn("Some rewrite rules", mock_notify.call_args[0][0]) @mock.patch("certbot_apache._internal.configurator.display_util.notify") def test_make_vhost_ssl_with_existing_rewrite_conds(self, mock_notify): @@ -1659,7 +1659,7 @@ class MultiVhostsTest(util.ApacheTest): self.assertTrue(commented_cond2 in conf_line_set) self.assertTrue(commented_rewrite_rule in conf_line_set) self.assertEqual(mock_notify.call_count, 1) - self.assertTrue("Some rewrite rules" in mock_notify.call_args[0][0]) + self.assertIn("Some rewrite rules", mock_notify.call_args[0][0]) class InstallSslOptionsConfTest(util.ApacheTest):