<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/dnspython.git/tests/test_zone.py, branch nanonameserver</title>
<subtitle>github.com: rthalley/dnspython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/dnspython.git/'/>
<entry>
<title>IDNA support for zones, messages, names in rdata, rrsets, and rdatasets.</title>
<updated>2020-05-03T21:49:55+00:00</updated>
<author>
<name>Bob Halley</name>
<email>halley@dnspython.org</email>
</author>
<published>2020-05-03T21:49:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=f721d7b85d488327699e4cd0e71693dc8eb0f12e'/>
<id>f721d7b85d488327699e4cd0e71693dc8eb0f12e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>zone.to_text() should return a string.</title>
<updated>2020-03-20T20:58:02+00:00</updated>
<author>
<name>Brian Wellington</name>
<email>bwelling@xbill.org</email>
</author>
<published>2020-03-20T20:58:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=9dc0fa40c8e38dc836642f527d2708ca67428160'/>
<id>9dc0fa40c8e38dc836642f527d2708ca67428160</id>
<content type='text'>
As part of the Python 3 conversion, the result of dns.zone.to_text()
changed from str to bytes.  This was likely unintentional, as a method
with text in its name should be returning text.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As part of the Python 3 conversion, the result of dns.zone.to_text()
changed from str to bytes.  This was likely unintentional, as a method
with text in its name should be returning text.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove choose_relativity() from zone.from_xfr()</title>
<updated>2020-03-18T21:57:29+00:00</updated>
<author>
<name>Brian Wellington</name>
<email>bwelling@xbill.org</email>
</author>
<published>2020-03-18T21:56:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=41ca1be22dad341709a3856f34fe63aa46da1d1b'/>
<id>41ca1be22dad341709a3856f34fe63aa46da1d1b</id>
<content type='text'>
The comment states that relativize must be consistent between
dns.query.xfr() and dns.zone.from_xfr(), and the code fails if they're
not (if check_origin is True, at least).  This means that the rdata is
already correctly relativized (or not).

This also adds a test of creating zones from xfrs, both relativized and
not.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The comment states that relativize must be consistent between
dns.query.xfr() and dns.zone.from_xfr(), and the code fails if they're
not (if check_origin is True, at least).  This means that the rdata is
already correctly relativized (or not).

This also adds a test of creating zones from xfrs, both relativized and
not.
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve assertion checking.</title>
<updated>2020-03-18T18:26:55+00:00</updated>
<author>
<name>Brian Wellington</name>
<email>bwelling@xbill.org</email>
</author>
<published>2020-03-18T18:26:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=e6798e58b4555740db4cfb43c8b9ce0d7d3416f1'/>
<id>e6798e58b4555740db4cfb43c8b9ce0d7d3416f1</id>
<content type='text'>
This replaces lots of self.assertTrue() assertions with more specific
assertions, such as replacing assertTrue(x == y) with assertEqual(x, y).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This replaces lots of self.assertTrue() assertions with more specific
assertions, such as replacing assertTrue(x == y) with assertEqual(x, y).
</pre>
</div>
</content>
</entry>
<entry>
<title>TST: fix failUnlessRaises -&gt; assertRaises deprecation</title>
<updated>2019-10-30T23:57:57+00:00</updated>
<author>
<name>Thomas A Caswell</name>
<email>tcaswell@bnl.gov</email>
</author>
<published>2019-10-30T23:57:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=6c6fe87aa5c9c86be157cae3efb132fe48875ea4'/>
<id>6c6fe87aa5c9c86be157cae3efb132fe48875ea4</id>
<content type='text'>
failUnlessRaises was deprecated in py31
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
failUnlessRaises was deprecated in py31
</pre>
</div>
</content>
</entry>
<entry>
<title>TST: fix unittest deprecation</title>
<updated>2019-10-30T23:54:53+00:00</updated>
<author>
<name>Thomas A Caswell</name>
<email>tcaswell@bnl.gov</email>
</author>
<published>2019-10-30T23:53:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=6db5ee1240b0d5cc060a02abe1886413ab432141'/>
<id>6db5ee1240b0d5cc060a02abe1886413ab432141</id>
<content type='text'>
failUnless was deprecated in py31
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
failUnless was deprecated in py31
</pre>
</div>
</content>
</entry>
<entry>
<title>remove the rest of the unicode string prefixes</title>
<updated>2019-01-08T15:03:46+00:00</updated>
<author>
<name>Bob Halley</name>
<email>halley@dnspython.org</email>
</author>
<published>2019-01-08T15:03:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=fabbd12061ff428ba7660433345033665b6ebdde'/>
<id>fabbd12061ff428ba7660433345033665b6ebdde</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>update copyright</title>
<updated>2018-12-01T15:26:45+00:00</updated>
<author>
<name>Bob Halley</name>
<email>halley@dnspython.org</email>
</author>
<published>2018-12-01T15:26:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=505409b970cc62bb777293671b3f943f9fa579b6'/>
<id>505409b970cc62bb777293671b3f943f9fa579b6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Initial type signatures</title>
<updated>2018-07-31T18:10:52+00:00</updated>
<author>
<name>Janus</name>
<email>ysangkok@gmail.com</email>
</author>
<published>2018-07-23T14:11:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=5c5de7bb1ad26d6d6bb82ed2deb64748b46ac599'/>
<id>5c5de7bb1ad26d6d6bb82ed2deb64748b46ac599</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve TTL detection when reading master zone files.</title>
<updated>2017-05-31T01:50:21+00:00</updated>
<author>
<name>Tom Lanyon</name>
<email>tomlanyon@google.com</email>
</author>
<published>2017-05-30T07:19:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=11bdb15d9c8037850d9ca5ea21b713d6283fab19'/>
<id>11bdb15d9c8037850d9ca5ea21b713d6283fab19</id>
<content type='text'>
This introduces the same behaviour that BIND has when it encounters implicit TTL
values, namely:
  * The $TTL directive is preferred to set the default TTL [RFC2308].
  * If no $TTL directive is seen prior to the SOA RR, the default TTL is set
    to the minimum TTL field of the SOA RR [RFC1033, RFC1035, RFC1912].
  * If neither $TTL nor an SOA are present, use the last seen explicit TTL on an
    RR or raise a SyntaxError if no explicit TTLs have been seen.

Previously, when neither $TTL nor SOA were present, the TTL for an RR without
an explicit TTL would be set to 0 which is known to be a somewhat dangerous
value and shouldn't be encouraged as a default.

One test seems to rely on this default TTL=0 behaviour whilst testing something
seemingly unrelated (RR starting with whitespace), so that test has been
updated to match this new expectation.

Fixes #254.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This introduces the same behaviour that BIND has when it encounters implicit TTL
values, namely:
  * The $TTL directive is preferred to set the default TTL [RFC2308].
  * If no $TTL directive is seen prior to the SOA RR, the default TTL is set
    to the minimum TTL field of the SOA RR [RFC1033, RFC1035, RFC1912].
  * If neither $TTL nor an SOA are present, use the last seen explicit TTL on an
    RR or raise a SyntaxError if no explicit TTLs have been seen.

Previously, when neither $TTL nor SOA were present, the TTL for an RR without
an explicit TTL would be set to 0 which is known to be a somewhat dangerous
value and shouldn't be encouraged as a default.

One test seems to rely on this default TTL=0 behaviour whilst testing something
seemingly unrelated (RR starting with whitespace), so that test has been
updated to match this new expectation.

Fixes #254.
</pre>
</div>
</content>
</entry>
</feed>
