| Current Path : /lib/python3/dist-packages/certbot/plugins/__pycache__/ |
| Current File : //lib/python3/dist-packages/certbot/plugins/__pycache__/webroot_test.cpython-38.pyc |
U
�]p4 � @ s d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl Z
ddlZddlZddl
mZ ddlmZ ddlmZ ddlmZ ddlmZ dd lmZ dd
lmZ dd lmZ e
j�e�d��ZG dd
� d
ej�Z G dd� dej�Z!e"dkr�e�#� dS )z"Tests for certbot.plugins.webroot.� )�print_functionN)�
challenges)�achallenges)�errors)�os)�
filesystem)�util)� acme_utilzrsa512_key.pemc @ s� e Zd ZdZejejded�Z dd� Z
dd� Zdd � Zd
d� Z
dd
� Ze�� dd� �Ze�� dd� �Ze�� dd� �Ze�� dd� �Zdd� Zdd� Ze�d�dd� �Ze�� dd� �Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Ze�d)�d*d+� �Z d,S )-�AuthenticatorTestz0Tests for certbot.plugins.webroot.Authenticator.� thing.com�Zchallb�domainZaccount_keyc C s� ddl m} t�� | _tj�| jd�| _t� | j� tj�| jd�| _
tj�| jdd�| _tj�| jd�| _t
j| jd| jid�| _|| jd�| _d S ) Nr ��
Authenticator�webrootz.well-knownzacme-challengeZ:ZXZhR3hmQURzNnBTUmIyTEF2OUlaZjE3RHQzanV4R0orUEN0OTJ3citvQQr )�webroot_path�webroot_map)�certbot.plugins.webrootr �tempfile�mkdtempZ workspacer �path�joinr �mkdir�partial_root_challenge_path�root_challenge_path�validation_path�mock� MagicMock�config�auth��selfr � r"