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

Method testResolveEdnsOptions

tests/test_resolver.py:713–718  ·  view source on GitHub ↗
(self, message_use_edns_mock)

Source from the content-addressed store, hash-verified

711 @tests.util.retry_on_timeout
712 @patch.object(dns.message.Message, "use_edns")
713 def testResolveEdnsOptions(self, message_use_edns_mock):
714 resolver = dns.resolver.Resolver()
715 options = [dns.edns.ECSOption("1.1.1.1")]
716 resolver.use_edns(True, options=options)
717 resolver.resolve("dns.google.", "A")
718 assert {"options": options} in message_use_edns_mock.call_args
719
720 @tests.util.retry_on_timeout
721 def testResolveNodataException(self):

Callers

nothing calls this directly

Calls 2

resolveMethod · 0.95
use_ednsMethod · 0.45

Tested by

no test coverage detected