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

Method setUp

tests/test_query.py:708–712  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

706
707class IgnoreErrors(unittest.TestCase):
708 def setUp(self):
709 self.q = dns.message.make_query("example.", "A")
710 self.good_r = dns.message.make_response(self.q)
711 self.good_r.set_rcode(dns.rcode.NXDOMAIN)
712 self.good_r_wire = self.good_r.to_wire()
713
714 def mock_receive(
715 self,

Callers

nothing calls this directly

Calls 2

set_rcodeMethod · 0.80
to_wireMethod · 0.45

Tested by

no test coverage detected