uncomment code

This commit is contained in:
Brad Warren 2023-03-15 12:00:34 -07:00
parent ef5958355f
commit a0f2713e34

View file

@ -20,7 +20,7 @@ import josepy as jose
import pytest
import pytz
#from acme.messages import Error as acme_error
from acme.messages import Error as acme_error
from certbot import configuration
from certbot import crypto_util
from certbot import errors
@ -894,16 +894,16 @@ class DetermineAccountTest(test_util.ConfigTestCase):
err_msg = "Some error message raised by Certbot"
self._register_error_common(err_msg, errors.Error(err_msg))
#def test_register_error_acme_type_and_detail(self):
# err_msg = ("Error returned by the ACME server: must agree to terms of service")
# exception = acme_error(typ = "urn:ietf:params:acme:error:malformed",
# detail = "must agree to terms of service")
# self._register_error_common(err_msg, exception)
def test_register_error_acme_type_and_detail(self) -> None:
err_msg = ("Error returned by the ACME server: must agree to terms of service")
exception = acme_error(typ = "urn:ietf:params:acme:error:malformed",
detail = "must agree to terms of service")
self._register_error_common(err_msg, exception)
#def test_register_error_acme_type_only(self):
# err_msg = ("Error returned by the ACME server: The server experienced an internal error")
# exception = acme_error(typ = "urn:ietf:params:acme:error:serverInternal")
# self._register_error_common(err_msg, exception)
def test_register_error_acme_type_only(self) -> None:
err_msg = ("Error returned by the ACME server: The server experienced an internal error")
exception = acme_error(typ = "urn:ietf:params:acme:error:serverInternal")
self._register_error_common(err_msg, exception)
class MainTest(test_util.ConfigTestCase):