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

Function run

tests/test_ddr.py:33–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 1

test_basic_ddr_asyncFunction · 0.70

Calls 2

try_ddrMethod · 0.95
kindMethod · 0.45

Tested by

no test coverage detected