From b75bd56546b9d2c525a3e6f337ca9f54969045db Mon Sep 17 00:00:00 2001 From: sayali Date: Mon, 2 Nov 2020 18:29:22 -0800 Subject: [PATCH] Check if ValueError assert works old way --- lemur/plugins/lemur_acme/tests/test_acme.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lemur/plugins/lemur_acme/tests/test_acme.py b/lemur/plugins/lemur_acme/tests/test_acme.py index 39600eb2..6a81d85d 100644 --- a/lemur/plugins/lemur_acme/tests/test_acme.py +++ b/lemur/plugins/lemur_acme/tests/test_acme.py @@ -130,8 +130,9 @@ class TestAcme(unittest.TestCase): mock_authz.dns_challenge = [] dns_challenge = Mock() mock_authz.dns_challenge.append(dns_challenge) - with self.assertRaises(ValueError): - self.acme.complete_dns_challenge(mock_acme, mock_authz) + # with self.assertRaises(ValueError): + # self.acme.complete_dns_challenge(mock_acme, mock_authz) + self.assertRaises(ValueError, self.acme.complete_dns_challenge(mock_acme, mock_authz)) @patch("acme.client.Client") @patch("OpenSSL.crypto", return_value="mock_cert")