Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias alias ImportFrom alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Str decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad Str Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr ListLoad Call NameLoad Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Assign NameStore ListComp Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr AttributeLoad NameLoad attr NameLoad comprehension TupleStore NameStore NameStore NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Call NameLoad Str NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Call NameLoad Str NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Call NameLoad Str NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Call NameLoad Str NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Call NameLoad Str NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num attr attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list decorator_list
N/A N/A 
Tests for the I{hosts(5)}-based resolver, L{twisted.names.hosts}.
 __future__ division absolute_import twisted.trial.unittest TestCase twisted.python.filepath FilePath twisted.internet.defer gatherResults twisted.names.dns A AAAA IN DomainError RRHeader Query Record_A Record_AAAA twisted.names.hosts Resolver searchFileFor searchFileForAll GoodTempPathMixin N/A object N/A path N/A N/A self N/A N/A N/A N/A FilePath N/A N/A N/A N/A self mktemp encode utf-8 N/A N/A SearchHostsFileTests N/A TestCase GoodTempPathMixin N/A N/A 
    Tests for L{searchFileFor}, a helper which finds the first address for a
    particular hostname in a I{hosts(5)}-style file.
     test_findAddress N/A N/A self N/A N/A N/A 
        If there is an IPv4 address for the hostname passed to L{searchFileFor},
        it is returned.
         N/A hosts N/A N/A self path N/A N/A N/A hosts setContent 10.2.3.4 foo.example.com
 N/A N/A N/A self assertEqual 10.2.3.4 N/A searchFileFor N/A hosts path foo.example.com N/A test_notFoundAddress N/A N/A self N/A N/A N/A 
        If there is no address information for the hostname passed to
        L{searchFileFor}, C{None} is returned.
         N/A hosts N/A N/A self path N/A N/A N/A hosts setContent 10.2.3.4 foo.example.com
 N/A N/A N/A self assertIs None N/A searchFileFor N/A hosts path bar.example.com N/A test_firstAddress N/A N/A self N/A N/A N/A 
        The first address associated with the given hostname is returned.
         N/A hosts N/A N/A self path N/A N/A N/A hosts setContent ::1 foo.example.com
10.1.2.3 foo.example.com
fe80::21b:fcff:feee:5a1d foo.example.com
 N/A N/A N/A self assertEqual ::1 N/A searchFileFor N/A hosts path foo.example.com N/A test_searchFileForAliases N/A N/A self N/A N/A N/A 
        For a host with a canonical name and one or more aliases,
        L{searchFileFor} can find an address given any of the names.
         N/A hosts N/A N/A self path N/A N/A N/A hosts setContent 127.0.1.1	helmut.example.org	helmut
# a comment
::1 localhost ip6-localhost ip6-loopback
 N/A N/A N/A self assertEqual N/A searchFileFor N/A hosts path helmut 127.0.1.1 N/A N/A N/A self assertEqual N/A searchFileFor N/A hosts path helmut.example.org 127.0.1.1 N/A N/A N/A self assertEqual N/A searchFileFor N/A hosts path ip6-localhost ::1 N/A N/A N/A self assertEqual N/A searchFileFor N/A hosts path ip6-loopback ::1 N/A N/A N/A self assertEqual N/A searchFileFor N/A hosts path localhost ::1 N/A N/A SearchHostsFileForAllTests N/A TestCase GoodTempPathMixin N/A N/A 
    Tests for L{searchFileForAll}, a helper which finds all addresses for a
    particular hostname in a I{hosts(5)}-style file.
     test_allAddresses N/A N/A self N/A N/A N/A 
        L{searchFileForAll} returns a list of all addresses associated with the
        name passed to it.
         N/A hosts N/A N/A self path N/A N/A N/A hosts setContent 127.0.0.1     foobar.example.com
127.0.0.2     foobar.example.com
::1           foobar.example.com
 N/A N/A N/A self assertEqual N/A 127.0.0.1 127.0.0.2 ::1 N/A searchFileForAll hosts foobar.example.com N/A test_caseInsensitively N/A N/A self N/A N/A N/A 
        L{searchFileForAll} searches for names case-insensitively.
         N/A hosts N/A N/A self path N/A N/A N/A hosts setContent 127.0.0.1     foobar.EXAMPLE.com
 N/A N/A N/A self assertEqual N/A 127.0.0.1 N/A searchFileForAll hosts FOOBAR.example.com N/A test_readError N/A N/A self N/A N/A N/A 
        If there is an error reading the contents of the hosts file,
        L{searchFileForAll} returns an empty list.
         N/A N/A N/A self assertEqual N/A N/A searchFileForAll N/A N/A self path example.com N/A N/A HostsTests N/A TestCase GoodTempPathMixin N/A N/A 
    Tests for the I{hosts(5)}-based L{twisted.names.hosts.Resolver}.
     setUp N/A N/A self N/A N/A N/A f N/A N/A self path N/A N/A N/A f setContent 
1.1.1.1    EXAMPLE EXAMPLE.EXAMPLETHING
::2        mixed
1.1.1.2    MIXED
::1        ip6thingy
1.1.1.3    multiple
1.1.1.4    multiple
::3        ip6-multiple
::4        ip6-multiple
 N/A N/A self ttl 4200 N/A N/A self resolver N/A Resolver N/A f path N/A self ttl N/A test_defaultPath N/A N/A self N/A N/A N/A 
        The default hosts file used by L{Resolver} is I{/etc/hosts} if no value
        is given for the C{file} initializer parameter.
         N/A resolver N/A Resolver N/A N/A N/A self assertEqual /etc/hosts N/A resolver file N/A test_getHostByName N/A N/A self N/A N/A N/A 
        L{hosts.Resolver.getHostByName} returns a L{Deferred} which fires with a
        string giving the address of the queried name as found in the resolver's
        hosts file.
         N/A data N/A N/A EXAMPLE 1.1.1.1 N/A EXAMPLE.EXAMPLETHING 1.1.1.1 N/A MIXED 1.1.1.2 N/A ds N/A N/A N/A N/A N/A N/A self resolver getHostByName n addCallback N/A self assertEqual ip N/A N/A n ip data N/A N/A gatherResults ds N/A test_lookupAddress N/A N/A self N/A N/A N/A 
        L{hosts.Resolver.lookupAddress} returns a L{Deferred} which fires with A
        records from the hosts file.
         N/A d N/A N/A N/A self resolver lookupAddress multiple resolved N/A N/A results N/A N/A N/A N/A answers authority additional results N/A N/A N/A self assertEqual N/A N/A RRHeader multiple A IN N/A self ttl N/A Record_A 1.1.1.3 N/A self ttl N/A RRHeader multiple A IN N/A self ttl N/A Record_A 1.1.1.4 N/A self ttl answers N/A N/A N/A N/A d addCallback resolved N/A d N/A test_lookupIPV6Address N/A N/A self N/A N/A N/A 
        L{hosts.Resolver.lookupIPV6Address} returns a L{Deferred} which fires
        with AAAA records from the hosts file.
         N/A d N/A N/A N/A self resolver lookupIPV6Address ip6-multiple resolved N/A N/A results N/A N/A N/A N/A answers authority additional results N/A N/A N/A self assertEqual N/A N/A RRHeader ip6-multiple AAAA IN N/A self ttl N/A Record_AAAA ::3 N/A self ttl N/A RRHeader ip6-multiple AAAA IN N/A self ttl N/A Record_AAAA ::4 N/A self ttl answers N/A N/A N/A N/A d addCallback resolved N/A d N/A test_lookupAllRecords N/A N/A self N/A N/A N/A 
        L{hosts.Resolver.lookupAllRecords} returns a L{Deferred} which fires
        with A records from the hosts file.
         N/A d N/A N/A N/A self resolver lookupAllRecords mixed resolved N/A N/A results N/A N/A N/A N/A answers authority additional results N/A N/A N/A self assertEqual N/A N/A RRHeader mixed A IN N/A self ttl N/A Record_A 1.1.1.2 N/A self ttl answers N/A N/A N/A N/A d addCallback resolved N/A d N/A test_notImplemented N/A N/A self N/A N/A N/A N/A N/A self assertFailure N/A N/A N/A self resolver lookupMailExchange EXAMPLE NotImplementedError N/A test_query N/A N/A self N/A N/A N/A d N/A N/A N/A self resolver query N/A Query EXAMPLE N/A N/A N/A d addCallback N/A N/A N/A x N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A x N/A 0 N/A 0 payload dottedQuad 1.1.1.1 N/A d N/A test_lookupAddressNotFound N/A N/A self N/A N/A N/A 
        L{hosts.Resolver.lookupAddress} returns a L{Deferred} which fires with
        L{dns.DomainError} if the name passed in has no addresses in the hosts
        file.
         N/A N/A N/A self assertFailure N/A N/A N/A self resolver lookupAddress foueoa DomainError N/A test_lookupIPV6AddressNotFound N/A N/A self N/A N/A N/A 
        Like L{test_lookupAddressNotFound}, but for
        L{hosts.Resolver.lookupIPV6Address}.
         N/A N/A N/A self assertFailure N/A N/A N/A self resolver lookupIPV6Address foueoa DomainError N/A test_lookupAllRecordsNotFound N/A N/A self N/A N/A N/A 
        Like L{test_lookupAddressNotFound}, but for
        L{hosts.Resolver.lookupAllRecords}.
         N/A N/A N/A self assertFailure N/A N/A N/A self resolver lookupAllRecords foueoa DomainError N/A N/A