summaryrefslogtreecommitdiff
path: root/tests/test_tokenizer.py
Commit message (Collapse)AuthorAgeFilesLines
* detect escapes > 255Bob Halley2020-08-101-0/+8
|
* Adds support for reading TSIG text format.Brian Wellington2020-08-101-0/+3
| | | | | | | | | | | | | | | | Implements from_text for the TSIG record type, and clean up some other things. Fixes the text format to emit fields in the right order; fudge and time_signed were reversed. This also matches BIND's output format now. Add get_uint48() to the tokenizer, so that from_text() can use it. Add get_uint48() to the wire parser, and use it in from_wire, for consistency. Change dns.tsig.sign() to use rdata.replace() rather than constructing a new TSIG record manually; this couldn't be done before, because replace() uses text format for validation.
* more tokenizer coverage improvementsBob Halley2020-07-231-0/+50
|
* more tokenizer test cleanupsBob Halley2020-07-231-53/+19
|
* more tokenizer coverageBob Halley2020-07-231-21/+24
|
* more tokenizer coverageBob Halley2020-06-181-0/+34
|
* improve tokenizer coverageBob Halley2020-06-171-0/+93
|
* Do not double-UTF-8 encode escapes in TXT-like records. [Issue #321]Bob Halley2020-05-031-2/+3
|
* Improve assertion checking.Brian Wellington2020-03-181-24/+31
| | | | | This replaces lots of self.assertTrue() assertions with more specific assertions, such as replacing assertTrue(x == y) with assertEqual(x, y).
* TST: fix failUnlessRaises -> assertRaises deprecationThomas A Caswell2019-10-301-6/+6
| | | | failUnlessRaises was deprecated in py31
* TST: fix unittest deprecationThomas A Caswell2019-10-301-24/+24
| | | | failUnless was deprecated in py31
* remove the rest of the unicode string prefixesBob Halley2019-01-081-5/+0
|
* update copyrightBob Halley2018-12-011-0/+2
|
* Initial type signaturesJanus2018-07-311-4/+1
|
* Pylint: remove unused variablesMartin2016-08-311-5/+5
| | | | This commit removes some unused variables (except those in iterations, list comprehensions and used for unpacking)
* Pylint: tests: Fix whitespace errorsMartin2016-07-021-2/+2
|
* Pylint: tests: fix reimportsMartin2016-07-021-1/+0
|
* python3 supportArthur Gautier2016-04-211-0/+4
| | | | Signed-off-by: Arthur Gautier <baloo@gandi.net>
* fix unicode ipaddr crashes in rdata.from_text and tokenizer.Tokenizer, fixes #41Thomas Waldmann2015-02-241-0/+10
| | | | also added unit tests for both issues.
* overhaul test systemBob Halley2014-05-311-0/+190