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

Method bad

tests/test_async.py:319–325  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

317
318 def testZoneForName4(self):
319 def bad():
320 name = dns.name.from_text("dnspython.org", None)
321
322 async def run():
323 return await dns.asyncresolver.zone_for_name(name)
324
325 self.async_run(run)
326
327 self.assertRaises(dns.resolver.NotAbsolute, bad)
328

Callers

nothing calls this directly

Calls 2

async_runMethod · 0.95
from_textMethod · 0.45

Tested by

no test coverage detected