Spade

Mini Shell

Directory:~$ /lib/python2.7/site-packages/certbot/plugins/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ //lib/python2.7/site-packages/certbot/plugins/dns_test_common.pyo

�
���_c@s�dZddlZddlZyddlZWn!ek
rQddlmZnXddlZddlm	Z	ddl
mZddlm
Z
ddlmZddlmZd	Zejjejd
��Zdefd��YZd
�ZdS(s'Base test class for DNS
authenticators.i����N(tmock(t
challenges(tachallenges(t
filesystem(t	acme_util(tutilsexample.comsrsa512_key.pemtBaseAuthenticatorTestcBsJeZdZejdejdede�Z	d�Z
d�Zd�Z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|jj�tj��dS(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|jjd�tjg�dS(N(tassertEqualRtget_chall_preftNoneRtDNS01(R((sC/usr/lib/python2.7/site-packages/certbot/plugins/dns_test_common.pyttest_get_chall_pref$scCsEtj�}|jj|�|jddtdtjdtj�dS(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|d�dS(s�Write
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