From 2d98e71977335933842af7c6f2f4676bb574d69e Mon Sep 17 00:00:00 2001 From: Mathias Petermann Date: Tue, 27 Oct 2020 10:44:04 +0100 Subject: [PATCH] Replace deprecated assertRaisesRegexp with assertRaisesRegex --- lemur/plugins/lemur_acme/tests/test_acme_http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lemur/plugins/lemur_acme/tests/test_acme_http.py b/lemur/plugins/lemur_acme/tests/test_acme_http.py index 24cbbb5b..365bcb5c 100644 --- a/lemur/plugins/lemur_acme/tests/test_acme_http.py +++ b/lemur/plugins/lemur_acme/tests/test_acme_http.py @@ -127,7 +127,7 @@ class TestAcmeHttp(unittest.TestCase): } csr = "123" mock_request_certificate.return_value = ("pem_certificate", "chain") - with self.assertRaisesRegexp(Exception, "No token_destination configured"): + with self.assertRaisesRegex(Exception, "No token_destination configured"): provider.create_certificate(csr, issuer_options) @patch("lemur.plugins.lemur_acme.plugin.AcmeHandler.setup_acme_client") @@ -166,5 +166,5 @@ class TestAcmeHttp(unittest.TestCase): } csr = "123" mock_request_certificate.return_value = ("pem_certificate", "chain") - with self.assertRaisesRegexp(Exception, "HTTP-01 challenge was not offered"): + with self.assertRaisesRegex(Exception, "HTTP-01 challenge was not offered"): provider.create_certificate(csr, issuer_options)