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

Method test_axfr

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

Source from the content-addressed store, hash-verified

443@unittest.skipIf(not _nanonameserver_available, "nanonameserver required")
444class XfrTests(unittest.TestCase):
445 def test_axfr(self):
446 expected = dns.zone.from_text(axfr_zone, origin="example")
447 with AXFRNanoNameserver(origin="example") as ns:
448 xfr = dns.query.xfr(ns.tcp_address[0], "example", port=ns.tcp_address[1])
449 zone = dns.zone.from_xfr(xfr)
450 self.assertEqual(zone, expected)
451
452 def test_axfr_tsig(self):
453 expected = dns.zone.from_text(axfr_zone, origin="example")

Callers

nothing calls this directly

Calls 2

AXFRNanoNameserverClass · 0.85
from_textMethod · 0.45

Tested by

no test coverage detected