From c71dbcb0a06f5940a866738b3ab01e990f7947aa Mon Sep 17 00:00:00 2001 From: Mathias Petermann Date: Tue, 3 Nov 2020 09:48:25 +0100 Subject: [PATCH] Fix duplicate tests --- lemur/plugins/lemur_acme/tests/test_acme_dns.py | 13 ------------- lemur/plugins/lemur_acme/tests/test_acme_handler.py | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/lemur/plugins/lemur_acme/tests/test_acme_dns.py b/lemur/plugins/lemur_acme/tests/test_acme_dns.py index ef676e20..3efc3934 100644 --- a/lemur/plugins/lemur_acme/tests/test_acme_dns.py +++ b/lemur/plugins/lemur_acme/tests/test_acme_dns.py @@ -40,19 +40,6 @@ class TestAcmeDns(unittest.TestCase): result = yield self.acme.get_dns_challenges(host, mock_authz) self.assertEqual(result, mock_entry) - def test_strip_wildcard(self): - expected = ("example.com", False) - result = self.acme.strip_wildcard("example.com") - self.assertEqual(expected, result) - - expected = ("example.com", True) - result = self.acme.strip_wildcard("*.example.com") - self.assertEqual(expected, result) - - def test_authz_record(self): - a = AuthorizationRecord("domain", "host", "authz", "challenge", "id") - self.assertEqual(type(a), AuthorizationRecord) - @patch("acme.client.Client") @patch("lemur.plugins.lemur_acme.acme_handlers.current_app") @patch("lemur.plugins.lemur_acme.plugin.len", return_value=1) diff --git a/lemur/plugins/lemur_acme/tests/test_acme_handler.py b/lemur/plugins/lemur_acme/tests/test_acme_handler.py index 1456f802..d9f4313d 100644 --- a/lemur/plugins/lemur_acme/tests/test_acme_handler.py +++ b/lemur/plugins/lemur_acme/tests/test_acme_handler.py @@ -19,7 +19,7 @@ class TestAcmeHandler(unittest.TestCase): self.assertEqual(expected, result) def test_authz_record(self): - a = acme_handlers.AuthorizationRecord("host", "authz", "challenge", "id") + a = acme_handlers.AuthorizationRecord("domain", "host", "authz", "challenge", "id") self.assertEqual(type(a), acme_handlers.AuthorizationRecord) def test_setup_acme_client_fail(self):