| Current Path : /lib/python3/dist-packages/certbot/tests/__pycache__/ |
| Current File : //lib/python3/dist-packages/certbot/tests/__pycache__/cert_manager_test.cpython-38.pyc |
U
�]�p � @ sv d Z ddlZddlZddlZddlZddlZddlZddlmZ ddlm Z ddl
mZ ddl
mZ ddl
mZ ddlmZ dd lmZ ddlmZ G d
d� dej�ZG dd
� d
e�ZG dd� dej�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� dej�ZG dd� dej�Z G dd� dej�Z!G d d!� d!ej"�Z#e$d"k�rre�%� dS )#�Tests for certbot.cert_manager.� N)�
configuration)�errors)�os)�
filesystem)�util)�ALL_FOUR)�storage_testc s( e Zd ZdZ� fdd�Zdd� Z� ZS )�BaseCertManagerTestz2Base class for setting up Cert Manager tests.
c s� t t� ��� d� j_t�� jj� d tj �
� jjd�d�� _t
� fdd�� jD ��� _ttj �
� jjd�d��}|�d� W 5 Q R X d S ) NFZspecialarchive)�example.org� other.comc 3 s$ | ]}|� � |� j| �fV qd S �N)�_set_up_config�domains)�.0�domain��self� �A/usr/lib/python3/dist-packages/certbot/tests/cert_manager_test.py� <genexpr># s �z,BaseCertManagerTest.setUp.<locals>.<genexpr>zIGNORE.THIS�wzThis file should be ignored!)�superr
�setUp�config�quietr �makedirs�renewal_configs_dirr �path�join�
config_dirr �dict�config_files�open�write)r Zjunk�� __class__r r r s ��
zBaseCertManagerTest.setUpc C s� t �tj�| jj|�� t�� }|d k r<t �|� ||d<