Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
byp
/
izo
/
con7ext_sym404
/
rintoar.txt
/
usr
/
lib
/
python3.6
/
site-packages
/
certbot
/
plugins
/
__pycache__
:
dns_test_common_lexicon.cpython-36.pyc
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
3 گax � @ s0 d Z ddlmZ ddlmZ ddlmZ ddlZddlm Z ddlm Z ddlmZ dd l mZ dd lmZ ddlmZ ddlmZ dd lmZ yddlZW n ek r� ddlmZ Y nX er�ddlmZ neZdZejj ej!d��Z"G dd� dee�Z#G dd� de�Z$G dd� dej%�Z&G dd� d�Z'dS )z8Base test class for DNS authenticators built on Lexicon.� )�Any)� TYPE_CHECKING)� MagicMockN)� HTTPError)�RequestException)� Challenge)�errors)�dns_test_common)� LexiconClient)�_AuthenticatorCallableTestCase)�util)�mock)�Protocolzexample.comzrsa512_key.pemc @ s e Zd ZU dZeedS )�%_AuthenticatorCallableLexiconTestCasezq Protocol describing a TestCase suitable to test challenges against a mocked LexiconClient instance. N)�__name__� __module__�__qualname__�__doc__r �mock_clientr �achall� r r �-/usr/lib/python3.6/dns_test_common_lexicon.pyr s r c @ sF e Zd ZU dZeee e ee eeeedd�dd�ZdS )�_LexiconAwareTestCasezX Protocol describing a TestCase suitable to test a real LexiconClient instance. N)�unused_args�returnc G s dS )zl See https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertRaises Nr )�selfr r r r �assertRaises7 s z"_LexiconAwareTestCase.assertRaises)r r r r r �clientr � provider_mock�str� record_prefix�record_name�record_content� Exception�DOMAIN_NOT_FOUND� GENERIC_ERROR�LOGIN_ERROR�UNKNOWN_LOGIN_ERRORr r r r r r r '