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

Method testResolveAddress

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

Source from the content-addressed store, hash-verified

199
200 @tests.util.retry_on_timeout
201 def testResolveAddress(self):
202 async def run():
203 return await dns.asyncresolver.resolve_address("8.8.8.8")
204
205 answer = self.async_run(run)
206 dnsgoogle = dns.name.from_text("dns.google.")
207 self.assertEqual(answer[0].target, dnsgoogle)
208
209 @tests.util.retry_on_timeout
210 def testResolveName(self):

Callers

nothing calls this directly

Calls 2

async_runMethod · 0.95
from_textMethod · 0.45

Tested by

no test coverage detected