mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 16:22:18 -04:00
uncomment code
This commit is contained in:
parent
ef5958355f
commit
a0f2713e34
1 changed files with 10 additions and 10 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue