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

Method setUp

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

Source from the content-addressed store, hash-verified

772
773class IgnoreErrors(unittest.TestCase):
774 def setUp(self):
775 self.q = dns.message.make_query("example.", "A")
776 self.good_r = dns.message.make_response(self.q)
777 self.good_r.set_rcode(dns.rcode.NXDOMAIN)
778 self.good_r_wire = self.good_r.to_wire()
779 dns.asyncbackend.set_default_backend("asyncio")
780
781 def async_run(self, afunc):
782 return asyncio.run(afunc())

Callers

nothing calls this directly

Calls 2

set_rcodeMethod · 0.80
to_wireMethod · 0.45

Tested by

no test coverage detected