summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2020-07-25 05:54:54 -0700
committerBob Halley <halley@dnspython.org>2020-07-25 05:54:54 -0700
commitc4447c8cbd953ba67787c080ba10c9ba1827eab5 (patch)
tree649f373e403dc26954ec650d603bc22a919ebeb1
parentf0e7d31bbcf07c1e36623aacf19efa9d41021fcb (diff)
downloaddnspython-c4447c8cbd953ba67787c080ba10c9ba1827eab5.tar.gz
more reversename coverage
-rw-r--r--tests/test_name.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_name.py b/tests/test_name.py
index 2ad1e83..afa7d5d 100644
--- a/tests/test_name.py
+++ b/tests/test_name.py
@@ -934,6 +934,11 @@ class NameTestCase(unittest.TestCase):
text = dns.reversename.to_address(n, v6_origin=origin)
self.assertEqual(text, e)
+ def testUnknownReverseOrigin(self):
+ n = dns.name.from_text('1.2.3.4.unknown.')
+ with self.assertRaises(dns.exception.SyntaxError):
+ dns.reversename.to_address(n)
+
def testE164ToEnum(self):
text = '+1 650 555 1212'
e = dns.name.from_text('2.1.2.1.5.5.5.0.5.6.1.e164.arpa.')