ϪfABdZddlmZddlmZddlmZGddeZy)z% Tests for L{twisted.names.resolve}. ) DomainError) ResolverChain)TestCasec eZdZdZddZddZy)ResolverChainTestsz: Tests for L{twisted.names.resolve.ResolverChain} Nctg}|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 lookupAddressfailureResultOfassertIstraprselfrdfs A/usr/lib/python3/dist-packages/twisted/names/test/test_resolve.pytest_emptyResolversListz*ResolverChainTests.test_emptyResolversListsD "  OO- .   # aff[);7ctg}|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)rlookupAllRecordsr r r rrs r'test_emptyResolversListLookupAllRecordsz:ResolverChainTests.test_emptyResolversListLookupAllRecordssF "   0 1   # aff[);7r)returnN)__name__ __module__ __qualname____doc__rrrrrr s88rrN)rtwisted.names.errorrtwisted.names.resolvertwisted.trial.unittestrrrrrr"s!,/+88r