certbot.plugins.dns_test_common module

Base test class for DNS authenticators.

class certbot.plugins.dns_test_common.BaseAuthenticatorTest[source]

Bases: object

A base test class to reduce duplication between test code for DNS Authenticator Plugins.

Assumes:
  • That subclasses also subclass unittest.TestCase

  • That the authenticator is stored as self.auth

achall = KeyAuthorizationAnnotatedChallenge(challb=DNS01(token=b'17817c66b60ce2e4012dfad92657527a'), domain='example.com', account_key=JWKRSA(key=<ComparableRSAKey(<cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey object>)>))
test_more_info() None[source]
test_get_chall_pref() None[source]
test_parser_arguments() None[source]
certbot.plugins.dns_test_common.write(values: Mapping[str, Any], path: str) None[source]

Write the specified values to a config file.

Parameters:
  • values (dict) – A map of values to write.

  • path (str) – Where to write the values.