Esempio n. 1
0
 def test_query(self):
     """
     L{client.query} accepts a L{dns.Query} instance and dispatches
     it to L{client.theResolver}.C{query}, which in turn dispatches
     to an appropriate C{lookup*} method of L{client.theResolver},
     based on the L{dns.Query} type.
     """
     q = dns.Query(self.hostname, dns.A)
     d = client.query(q)
     d.addCallback(self.checkResult, dns.A)
     return d
Esempio n. 2
0
 def test_query(self):
     """
     L{client.query} accepts a L{dns.Query} instance and dispatches
     it to L{client.theResolver}.C{query}, which in turn dispatches
     to an appropriate C{lookup*} method of L{client.theResolver},
     based on the L{dns.Query} type.
     """
     q = dns.Query(self.hostname, dns.A)
     d = client.query(q)
     d.addCallback(self.checkResult, dns.A)
     return d