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

Method test_EDNSVersionCoherence

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

Source from the content-addressed store, hash-verified

282 self.assertEqual(m.rcode(), 2)
283
284 def test_EDNSVersionCoherence(self):
285 m = dns.message.make_query("foo", "A")
286 m.use_edns(1)
287 self.assertEqual((m.ednsflags >> 16) & 0xFF, 1)
288
289 def test_EDNSVersionCoherenceWithDNSSEC(self):
290 m = dns.message.make_query("foo", "A")

Callers

nothing calls this directly

Calls 1

use_ednsMethod · 0.45

Tested by

no test coverage detected