summaryrefslogtreecommitdiff
path: root/tests/test_update.py
diff options
context:
space:
mode:
authorBob Halley <halley@play-bow.org>2020-06-29 07:32:32 -0700
committerBob Halley <halley@play-bow.org>2020-06-29 07:32:32 -0700
commit3ec856223df5e6287903de37fb67f496e6dd8bc6 (patch)
treea4c6dfa7ff5e89272275c554ba04ee7716c2b71a /tests/test_update.py
parentabedf378928ed8aff3c6fb7790269460e356ddf4 (diff)
downloaddnspython-3ec856223df5e6287903de37fb67f496e6dd8bc6.tar.gz
more coverage improvements
Diffstat (limited to 'tests/test_update.py')
-rw-r--r--tests/test_update.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_update.py b/tests/test_update.py
index b87a044..d9ce6f5 100644
--- a/tests/test_update.py
+++ b/tests/test_update.py
@@ -226,5 +226,12 @@ class UpdateTestCase(unittest.TestCase):
update2 = dns.message.from_wire(wire, keyring)
self.assertEqual(update, update2)
+ def test_is_response(self):
+ update = dns.message.from_text(update_text)
+ self.assertTrue(isinstance(update, dns.update.UpdateMessage))
+ r = dns.message.make_response(update)
+ self.assertTrue(isinstance(r, dns.update.UpdateMessage))
+ self.assertTrue(update.is_response(r))
+
if __name__ == '__main__':
unittest.main()