Spade
Mini Shell
| Directory:~$ /proc/self/root/lib/python2.7/site-packages/certbot/plugins/ |
| [Home] [System Details] [Kill Me] |
�
���_c@s�dZddlZddlZyddlZWn!ek
rQddlmZnXddlZddlm Z ddl
mZddlm
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�ZRS(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_infotsixtstring_types(tself((sC/usr/lib/python2.7/site-packages/certbot/plugins/dns_test_common.pyttest_more_info!scCs&|j|jjd�tjg�dS(N(tassertEqualRtget_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 MagicMockRtadd_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