403Webshell
Server IP : 35.236.43.222  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User : deploy ( 1002)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/certbot/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/certbot/plugins/__pycache__/dns_test_common.cpython-39.pyc
a

�`��@s�dZddlZddlZzddlZWney>ddlmZYn0ddlZddlm	Z	ddl
mZddlm
Z
ddlmZddlmZd	Zej�e�d
��ZGdd�de�Zd
d�ZdS)z'Base test class for DNS authenticators.�N)�mock)�
challenges)�achallenges)�
filesystem)�	acme_util)�utilzexample.comzrsa512_key.pemc@s:eZdZdZejejee	d�Z
dd�Zdd�Zdd�Z
d	S)
�BaseAuthenticatorTestz�
    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
    )ZchallbZdomainZaccount_keycCs|�t|j��tj��dS�N)Z
assertTrue�
isinstance�authZ	more_info�sixZstring_types��self�r�A/usr/lib/python3/dist-packages/certbot/plugins/dns_test_common.py�test_more_info!sz$BaseAuthenticatorTest.test_more_infocCs|�|j�d�tjg�dSr	)ZassertEqualrZget_chall_prefr�DNS01r
rrr�test_get_chall_pref$sz)BaseAuthenticatorTest.test_get_chall_prefcCs.t��}|j�|�|jdttjtjd�dS)Nzpropagation-seconds)�type�default�help)rZ	MagicMockrZadd_parser_argumentsZassert_any_call�int�ANY)r�mrrr�test_parser_arguments'sz+BaseAuthenticatorTest.test_parser_argumentsN)�__name__�
__module__�__qualname__�__doc__rZ"KeyAuthorizationAnnotatedChallengerr�DOMAIN�KEYZachallrrrrrrrrs�rcCsdt��}|D]}||||<qt|d��}|j|d�Wd�n1sJ0Yt�|d�dS)z�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.
    �wb)ZoutfileNi�)�	configobjZ	ConfigObj�open�writer�chmod)�values�pathZconfig�key�frrrr$.s*r$)rr"ZjosepyZjoser�ImportErrorZunittestrZacmerZcertbotrZcertbot.compatrZ
certbot.testsrrZ	test_utilrZJWKRSA�loadZload_vectorr �objectrr$rrrr�<module>s 

Youez - 2016 - github.com/yon3zu
LinuXploit