o
    ¼>hA  ã                   @   s<   d Z ddlmZ ddlmZ ddlmZ G dd„ deƒZdS )z%
Tests for L{twisted.names.resolve}.
é    )ÚDomainError)ÚResolverChain)ÚTestCasec                   @   s$   e Zd ZdZddd„Zddd„ZdS )	ÚResolverChainTestsz:
    Tests for L{twisted.names.resolve.ResolverChain}
    ÚreturnNc                 C   ó2   t g ƒ}| d¡}|  |¡}|  | t¡t¡ dS )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   ú/var/www/vedio/testing/chatpythonscript.ninositsolution.com/env/lib/python3.10/site-packages/twisted/names/test/test_resolve.pyÚtest_emptyResolversList   ó   

z*ResolverChainTests.test_emptyResolversListc                 C   r   )z
        L{ResolverChain.lookupAllRecords} returns a L{DomainError}
        failure if its C{resolvers} list is empty.
        r   N)r   ÚlookupAllRecordsr
   r   r   r   r   r   r   r   Ú'test_emptyResolversListLookupAllRecords   r   z:ResolverChainTests.test_emptyResolversListLookupAllRecords)r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r      s    

r   N)r   Útwisted.names.errorr   Útwisted.names.resolver   Útwisted.trial.unittestr   r   r   r   r   r   Ú<module>   s
   