/usr/lib/python3.9/site-packages/certbot/_internal/tests/__pycache__
a }|�g� � @ s� d Z ddlZddlZddlmZ ddlZddlmZ ddlmZ ddl m Z G dd� dej�ZG d d � d ej�Z edkr�e�e�ejdd� eg �� dS ) zTests for certbot.errors.� N)�mock)�messages)�achallenges)� acme_utilc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �FailedChallengesTestz*Tests for certbot.errors.FailedChallenges.c C s@ ddl m} |tjdtjtjd tjj ddd�d�d�h�| _ d S ) Nr ��FailedChallenges�example.com�tls�detail�r �ZchallZuri�error��domainZchallb)�certbot.errorsr r �DNSr � ChallengeBodyr �DNS01�Error� with_coder )�selfr � r �G/usr/lib/python3.9/site-packages/certbot/_internal/tests/errors_test.py�setUp s ��zFailedChallengesTest.setUpc C s d S �Nr �r r r r �test_str s zFailedChallengesTest.test_strc C sB ddl m} d}|tjdtjtjd tjj d|d�d�d�h�}d S ) Nr r u عدالةr r r r r ) r r r r r r r r r r )r r Z arabic_detailZarabic_errorr r r �test_unicode s �� z!FailedChallengesTest.test_unicodeN)�__name__� __module__�__qualname__�__doc__r r r r r r r r s r c @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �StandaloneBindErrorTestz-Tests for certbot.errors.StandaloneBindError.c C s ddl m} |tjjd�| _d S )Nr )�StandaloneBindErrori� )r r$ r �sentinelr )r r$ r r r r , s zStandaloneBindErrorTest.setUpc C s d S r r r r r r �test_instance_args0 s z*StandaloneBindErrorTest.test_instance_argsc C s d S r r r r r r r 4 s z StandaloneBindErrorTest.test_strN)r r r! r"