summaryrefslogtreecommitdiff
path: root/tests/test_name.py
Commit message (Collapse)AuthorAgeFilesLines
* test name picklingBob Halley2020-08-131-0/+7
|
* more reversename coverageBob Halley2020-07-251-0/+5
|
* cover compression table too big branchBob Halley2020-07-231-0/+24
|
* Improve name coverage slightly by testing the uts_46 branch in 2008 decode.Bob Halley2020-07-231-6/+24
| | | | | | I'm not sure how useful in practice this is, as we don't offer a codec configuration default for it, but I'm not sure you'd never do it, and the existing code was in the wrong order.
* improve name coverageBob Halley2020-07-031-0/+4
|
* increase name test coverageBob Halley2020-06-301-0/+66
|
* improve coverageBob Halley2020-06-191-0/+71
|
* improve e164 coverageBob Halley2020-06-191-0/+5
|
* Test dns.name.__le__ and __ge__.Brian Wellington2020-06-171-0/+4
|
* Test `dns.name.from_unicode` with escapes.Brian Wellington2020-06-171-0/+5
|
* tests: remove forgotten printsPetr Špaček2020-05-281-1/+0
|
* increase test coverage for various thingsBob Halley2020-05-231-0/+24
|
* Merge pull request #460 from bwelling/remove-futureBob Halley2020-05-011-2/+0
|\ | | | | Remove "from __future__ import" statements.
| * Remove "from __future__ import" statements.Brian Wellington2020-05-011-2/+0
| | | | | | | | None of these are needed anymore.
* | also use skipUnless for tests that require IDNA2008Daniel Lenski2020-04-301-29/+31
|/
* Add alternate origin support to dns.reversename.Brian Wellington2020-04-291-0/+26
|
* Improve assertion checking.Brian Wellington2020-03-181-54/+63
| | | | | This replaces lots of self.assertTrue() assertions with more specific assertions, such as replacing assertTrue(x == y) with assertEqual(x, y).
* MNT: use raw string for invalid escape sequenceThomas A Caswell2019-10-301-2/+2
|
* TST: fix failUnlessRaises -> assertRaises deprecationThomas A Caswell2019-10-301-25/+25
| | | | failUnlessRaises was deprecated in py31
* TST: fix unittest deprecationThomas A Caswell2019-10-301-63/+63
| | | | failUnless was deprecated in py31
* tests for alternate dots for root in dns.name.from_unicodekimbo2019-07-261-0/+16
|
* remove the rest of the unicode string prefixesBob Halley2019-01-081-18/+18
|
* When dealing with an IDNA 2003 non-punycode label, escapify it before unicodeBob Halley2019-01-071-5/+5
| | | | | | conversion. This ensures that labels with codepoints that need escaping get it, as opposed to raising an exception because we tried to interpret a non-UTF-8 sequence as UTF-8.
* If there are no non-ASCII codepoints in the input, treat the name asBob Halley2019-01-061-0/+12
| | | | | | | | an ordinary domain name in from_text and do NOT apply any IDNA. This makes non-Unicode binary names like \150\151\152\153\154\155\156\157\158\159. work properly again. [Issue #270]
* Unicode label escapify was not escapifying special characters.Bob Halley2019-01-051-0/+5
| | | | | | [Issue #339] This commit also simplifies code and changes u'string' to 'string'.
* fix coding lines broken by copyright updateBob Halley2018-12-011-2/+2
|
* disable spurious pylint errors for python 2.7Bob Halley2018-12-011-1/+1
|
* update copyrightBob Halley2018-12-011-0/+2
|
* Initial type signaturesJanus2018-07-311-10/+8
|
* update pylint settings for latest pylintBob Halley2017-05-301-2/+2
|
* The IPv4 and IPv6 inet_ntoa() functions were returning binaryBob Halley2017-01-021-1/+1
| | | | instead of text, a Py2/Py3 merge bug.
* to_e164() was returning binary instead of text.Bob Halley2017-01-021-1/+1
| | | | Doco update for e164
* Make IDNA default decode just decode the punycode.Bob Halley2016-09-291-0/+15
|
* dns.name.to_text() should return text. [Issue #209]Bob Halley2016-09-271-9/+9
|
* Add IDNA 2008 Practical mode, since IDNA 2008 is absurdly strict.Bob Halley2016-09-261-0/+24
|
* de-lint IDNABob Halley2016-09-251-9/+8
|
* A simpler and more extensible IDNA API.Bob Halley2016-09-251-6/+16
|
* Fix python3 IDNA 2008 testing bugs.Bob Halley2016-09-211-3/+3
|
* Only use IDNA 2008 if requested.Bob Halley2016-09-211-12/+7
|
* If the IDNA2008 module "idna" is available, use it and do IDNA 2008 encoding.Bob Halley2016-09-191-2/+30
|
* Pylint: remove unused variablesMartin2016-08-311-16/+16
| | | | This commit removes some unused variables (except those in iterations, list comprehensions and used for unpacking)
* Pylint: remove bare exceptsMartin2016-08-311-2/+2
| | | | Bare excepts should not be used, because they may hide system exceptions such as KeyboardInterupts or SystemExits.
* Merge pull request #177 from cdeccio/testNameFixBob Halley2016-07-021-3/+3
|\ | | | | Use meaningful test
| * Use meaningful testCasey Deccio2016-06-241-3/+3
| | | | | | | | | | Test added in 257f2a didn't actually test the problem addressed in 257f2a. This one does.
* | Merge pull request #176 from cdeccio/fixRootNameTextBob Halley2016-07-021-0/+8
|\ \ | | | | | | Fix dns.name.Name.to_text()
| * | Fix dns.name.Name.to_text()Casey Deccio2016-06-241-0/+8
| |/ | | | | | | Fix dns.name.Name.to_text(), so root is displayed properly.
* | Py3: fix testsMartin2016-07-021-1/+1
| |
* | Pylint: tests: fix redefined functionsMartin2016-07-021-6/+6
| | | | | | | | | | | | | | This fix increases number of tests from Ran 424 tests in 13.300s to Ran 435 tests in 13.679s
* | Pylint: tests: disable line-too-long check locallyMartin2016-07-021-0/+3
| |
* | Pylint: tests: Fix whitespace errorsMartin2016-07-021-2/+2
| |