diff options
| author | Bob Halley <halley@dnspython.org> | 2012-08-28 13:58:33 -0700 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2012-08-28 13:58:33 -0700 |
| commit | 407c201f4cace8662318a7273995278b1423016b (patch) | |
| tree | c68c09f41d790496da5dba5c6bff5b791dcbd432 /tests | |
| parent | f22e642b14e08d8b479813c61f31d1e042952035 (diff) | |
| download | dnspython-407c201f4cace8662318a7273995278b1423016b.tar.gz | |
Do not generate empty NSEC3 bitmap windows
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bugs.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/bugs.py b/tests/bugs.py index fb00844..dd18f31 100644 --- a/tests/bugs.py +++ b/tests/bugs.py @@ -40,5 +40,10 @@ class BugsTestCase(unittest.TestCase): ttl = dns.ttl.from_text("2147483648") self.assertRaises(dns.ttl.BadTTL, bad) + def test_empty_NSEC3_window(self): + rdata = dns.rdata.from_text(dns.rdataclass.IN, dns.rdatatype.NSEC3, + "1 0 100 ABCD SCBCQHKU35969L2A68P3AD59LHF30715") + self.assertTrue(rdata.windows == []) + if __name__ == '__main__': unittest.main() |
