diff options
| author | Bob Halley <halley@dnspython.org> | 2022-01-24 12:19:42 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-24 12:19:42 -0800 |
| commit | c9ada20e2f9092b0ab19e6cf7610ae4bbc17d435 (patch) | |
| tree | 7d8fdd7522377c6d8f01e600345dcf4ce92c4a14 /tests | |
| parent | ad4339abc35a6f636a911273c33f1c797e170501 (diff) | |
| parent | c07d11ea060bc4bb02ee8deadba8365bd5b8b99d (diff) | |
| download | dnspython-c9ada20e2f9092b0ab19e6cf7610ae4bbc17d435.tar.gz | |
Merge pull request #768 from rthalley/absolute_origin_zone_txn_fix
Use the version's origin if the zone doesn't have one yet. [#766]
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_zone.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_zone.py b/tests/test_zone.py index bdc99a3..d0765df 100644 --- a/tests/test_zone.py +++ b/tests/test_zone.py @@ -1012,6 +1012,13 @@ class VersionedZoneTestCase(unittest.TestCase): rds = txn.get('example.', 'soa') self.assertEqual(rds[0].serial, 1) + def testNoRelativizeReaderOriginInText(self): + z = dns.zone.from_text(example_text, relativize=False, + zone_factory=dns.versioned.Zone) + with z.reader(serial=1) as txn: + rds = txn.get('example.', 'soa') + self.assertEqual(rds[0].serial, 1) + def testCnameAndOtherDataAddOther(self): z = dns.zone.from_text(example_cname, 'example.', relativize=True, zone_factory=dns.versioned.Zone) |
