/usr/share/cagefs-skeleton/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 t | j��d�sJ �d S )N�TFailed authorization procedure. example.com (dns-01): urn:ietf:params:acme:error:tls��strr � startswith�r r r r �test_str s �zFailedChallengesTest.test_strc C sT ddl m} d}|tjdtjtjd tjj d|d�d�d�h�}t |��d �sPJ �d S ) Nr r u عدالةr r r 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 )�StandaloneBindError�� )r r'