diff options
| author | Brian Wellington <bwelling@xbill.org> | 2020-06-16 15:34:12 -0700 |
|---|---|---|
| committer | Brian Wellington <bwelling@xbill.org> | 2020-06-16 15:34:12 -0700 |
| commit | 876c42db544bdc8f635b96157eff4d6ddb396a3d (patch) | |
| tree | 70d1ec8316c86a2574986f2f65f39a8ab2b3b9e8 /tests/test_query.py | |
| parent | 76d726a769f39aff45433ddea3361f2429bcc59c (diff) | |
| download | dnspython-876c42db544bdc8f635b96157eff4d6ddb396a3d.tar.gz | |
Test AXFR with TSIG.
Diffstat (limited to 'tests/test_query.py')
| -rw-r--r-- | tests/test_query.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_query.py b/tests/test_query.py index ec490f1..7fcce09 100644 --- a/tests/test_query.py +++ b/tests/test_query.py @@ -303,6 +303,15 @@ class XfrTests(unittest.TestCase): zone = dns.zone.from_xfr(xfr) self.assertEqual(zone, expected) + def test_axfr_tsig(self): + expected = dns.zone.from_text(axfr_zone, origin='example') + with AXFRNanoNameserver(keyring=keyring) as ns: + xfr = dns.query.xfr(ns.tcp_address[0], 'example', + port=ns.tcp_address[1], + keyring=keyring, keyname='name') + zone = dns.zone.from_xfr(xfr) + self.assertEqual(zone, expected) + def test_axfr_udp(self): def bad(): with AXFRNanoNameserver() as ns: |
