PHP WebShell

Текущая директория: /usr/lib/python3/dist-packages/twisted/names/test/__pycache__

Просмотр файла: test_resolve.cpython-310.pyc

o

�b1�@s<dZddlmZddlmZddlmZGdd�de�ZdS)z%
Tests for L{twisted.names.resolve}.
�)�DomainError)�
ResolverChain)�TestCasec@s eZdZdZdd�Zdd�ZdS)�ResolverChainTestsz:
    Tests for L{twisted.names.resolve.ResolverChain}
    cC�2tg�}|�d�}|�|�}|�|�t�t�dS)zv
        L{ResolverChain._lookup} returns a L{DomainError} failure if
        its C{resolvers} list is empty.
        �www.example.comN)r�
lookupAddress�failureResultOf�assertIs�trapr��self�r�d�f�r�A/usr/lib/python3/dist-packages/twisted/names/test/test_resolve.py�test_emptyResolversList�

z*ResolverChainTests.test_emptyResolversListcCr)z
        L{ResolverChain.lookupAllRecords} returns a L{DomainError}
        failure if its C{resolvers} list is empty.
        rN)r�lookupAllRecordsr	r
rrrrrr�'test_emptyResolversListLookupAllRecordsrz:ResolverChainTests.test_emptyResolversListLookupAllRecordsN)�__name__�
__module__�__qualname__�__doc__rrrrrrr
s
rN)r�twisted.names.errorr�twisted.names.resolver�twisted.trial.unittestrrrrrr�<module>s


Выполнить команду


Для локальной разработки. Не используйте в интернете!