o
    ¯b1  ã                   @   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„ Zdd„ ZdS )ÚResolverChainTestsz:
    Tests for L{twisted.names.resolve.ResolverChain}
    c                 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   úA/usr/lib/python3/dist-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_emptyResolversListLookupAllRecordsN)Ú__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
   