• File: dns_test_common.pyo
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/lib/python2.7/site-packages/certbot/plugins/dns_test_common.pyo
  • Date Modified: 10/08/2021 7:08 AM
  • File size: 2.88 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit

_c@sdZddlZddlZyddlZWn!ek
rQddlmZnXddlZddlm	Z	ddl
mZddlm
Z
ddlmZddlmZd	Zejjejd
ZdefdYZd
ZdS(s'Base test class for DNS authenticators.iN(tmock(t
challenges(tachallenges(t
filesystem(t	acme_util(tutilsexample.comsrsa512_key.pemtBaseAuthenticatorTestcBsJeZdZejdejdedeZ	dZ
dZdZRS(s
    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
    tchallbtdomaintaccount_keycCs&|jt|jjtjdS(N(t
assertTruet
isinstancetautht	more_infotsixtstring_types(tself((sC/usr/lib/python2.7/site-packages/certbot/plugins/dns_test_common.pyttest_more_info!scCs&|j|jjdtjgdS(N(tassertEqualRtget_chall_preftNoneRtDNS01(R((sC/usr/lib/python2.7/site-packages/certbot/plugins/dns_test_common.pyttest_get_chall_pref$scCsEtj}|jj||jddtdtjdtjdS(Nspropagation-secondsttypetdefaultthelp(Rt	MagicMockRtadd_parser_argumentstassert_any_calltinttANY(Rtm((sC/usr/lib/python2.7/site-packages/certbot/plugins/dns_test_common.pyttest_parser_arguments's(
t__name__t
__module__t__doc__Rt"KeyAuthorizationAnnotatedChallengeRRtDOMAINtKEYtachallRRR (((sC/usr/lib/python2.7/site-packages/certbot/plugins/dns_test_common.pyRs			cCsgtj}x|D]}||||<qWt|d}|jd|WdQXtj|ddS(sWrite the specified values to a config file.

    :param dict values: A map of values to write.
    :param str path: Where to write the values.
    twbtoutfileNi(t	configobjt	ConfigObjtopentwriteRtchmod(tvaluestpathtconfigtkeytf((sC/usr/lib/python2.7/site-packages/certbot/plugins/dns_test_common.pyR-.s
(R#R*tjosepytjoseRtImportErrortunittestRtacmeRtcertbotRtcertbot.compatRt
certbot.testsRRt	test_utilR%tJWKRSAtloadtload_vectorR&tobjectRR-(((sC/usr/lib/python2.7/site-packages/certbot/plugins/dns_test_common.pyt<module>s