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

Method test_bad_resolve_chaining

tests/test_message.py:671–686  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

669 self.assertEqual(len(r.additional), 0)
670
671 def test_bad_resolve_chaining(self):
672 r = dns.message.make_query("www.dnspython.org.", "a")
673 with self.assertRaises(dns.message.NotQueryResponse):
674 r.resolve_chaining()
675 r.flags |= dns.flags.QR
676 r.id = 1
677 r.find_rrset(
678 r.question,
679 dns.name.from_text("example"),
680 dns.rdataclass.IN,
681 dns.rdatatype.A,
682 create=True,
683 force_unique=True,
684 )
685 with self.assertRaises(dns.exception.FormError):
686 r.resolve_chaining()
687
688 def test_resolve_chaining_no_infinite_loop(self):
689 r = dns.message.from_text(

Callers

nothing calls this directly

Calls 3

resolve_chainingMethod · 0.80
find_rrsetMethod · 0.45
from_textMethod · 0.45

Tested by

no test coverage detected