MCPcopy Create free account
hub / github.com/rthalley/dnspython / testResolve

Method testResolve

tests/test_async.py:191–198  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

189
190 @tests.util.retry_on_timeout
191 def testResolve(self):
192 async def run():
193 answer = await dns.asyncresolver.resolve("dns.google.", "A")
194 return set([rdata.address for rdata in answer])
195
196 seen = self.async_run(run)
197 self.assertTrue("8.8.8.8" in seen)
198 self.assertTrue("8.8.4.4" in seen)
199
200 @tests.util.retry_on_timeout
201 def testResolveAddress(self):

Callers

nothing calls this directly

Calls 1

async_runMethod · 0.95

Tested by

no test coverage detected