summaryrefslogtreecommitdiff
path: root/tests/test_rdata.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_rdata.py')
-rw-r--r--tests/test_rdata.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_rdata.py b/tests/test_rdata.py
index 0ed38b7..9b1fdf8 100644
--- a/tests/test_rdata.py
+++ b/tests/test_rdata.py
@@ -409,5 +409,11 @@ class RdataTestCase(unittest.TestCase):
binascii.unhexlify('f00100030000'), 0, 6)
self.assertRaises(dns.exception.FormError, bad2)
+ def test_from_parser(self):
+ wire = bytes.fromhex('01020304')
+ rdata = dns.rdata.from_wire('in', 'a', wire, 0, 4)
+ print(rdata)
+ self.assertEqual(rdata, dns.rdata.from_text('in', 'a', '1.2.3.4'))
+
if __name__ == '__main__':
unittest.main()