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

Function test_basic_ddr_async

tests/test_ddr.py:32–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30)
31@tests.util.retry_on_timeout
32def test_basic_ddr_async():
33 async def run():
34 dns.asyncbackend._default_backend = None
35 for nameserver in ["1.1.1.1", "8.8.8.8"]:
36 res = dns.asyncresolver.Resolver(configure=False)
37 res.nameservers = [nameserver]
38 await res.try_ddr()
39 for nameserver in res.nameservers:
40 assert isinstance(nameserver, dns.nameserver.Nameserver)
41 assert nameserver.kind() != "Do53"
42
43 asyncio.run(run())

Callers

nothing calls this directly

Calls 2

runFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…