| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/certbot/plugins/__pycache__/ |
Upload File : |
a
�`� � @ s� d Z ddlZddlZzddlZW n ey> ddlmZ Y n0 ddlZddlm Z ddl
mZ ddlm
Z
ddlmZ ddlmZ d Zej�e�d
��ZG dd� de�Zd
d� ZdS )z'Base test class for DNS authenticators.� N)�mock)�
challenges)�achallenges)�
filesystem)� acme_util)�utilzexample.comzrsa512_key.pemc @ s: e Zd ZdZejejee d�Z
dd� Zdd� Zdd� Z
d S )
�BaseAuthenticatorTestz�
A base test class to reduce duplication between test code for DNS Authenticator Plugins.
Assumes:
* That subclasses also subclass unittest.TestCase
* That the authenticator is stored as self.auth
)ZchallbZdomainZaccount_keyc C s | � t| j�� tj�� d S �N)Z
assertTrue�
isinstance�authZ more_info�sixZstring_types��self� r �A/usr/lib/python3/dist-packages/certbot/plugins/dns_test_common.py�test_more_info! s z$BaseAuthenticatorTest.test_more_infoc C s | � | j�d �tjg� d S r )ZassertEqualr Zget_chall_prefr �DNS01r
r r r �test_get_chall_pref$ s z)BaseAuthenticatorTest.test_get_chall_prefc C s. t �� }| j�|� |jdtt jt jd� d S )Nzpropagation-seconds)�type�default�help)r Z MagicMockr Zadd_parser_argumentsZassert_any_call�int�ANY)r �mr r r �test_parser_arguments'