]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
improve name coverage
authorBob Halley <halley@dnspython.org>
Fri, 3 Jul 2020 21:56:59 +0000 (14:56 -0700)
committerBob Halley <halley@dnspython.org>
Fri, 3 Jul 2020 21:56:59 +0000 (14:56 -0700)
tests/test_name.py

index 0e8bd8efa63779e2f43b41720d90a1e9c7717d2e..dec8c5f5dee2b3526165393c5876dcdf93f431f1 100644 (file)
@@ -1028,5 +1028,9 @@ class NameTestCase(unittest.TestCase):
         with self.assertRaises(TypeError):
             del n.labels
 
+    def testUnicodeEscapify(self):
+        n = dns.name.from_unicode('Königsgäßchen;\ttext')
+        self.assertEqual(n.to_unicode(), 'königsgässchen\\;\\009text.')
+
 if __name__ == '__main__':
     unittest.main()