diff options
author | Bob Halley <halley@play-bow.org> | 2020-06-29 07:32:32 -0700 |
---|---|---|
committer | Bob Halley <halley@play-bow.org> | 2020-06-29 07:32:32 -0700 |
commit | 3ec856223df5e6287903de37fb67f496e6dd8bc6 (patch) | |
tree | a4c6dfa7ff5e89272275c554ba04ee7716c2b71a /tests/test_update.py | |
parent | abedf378928ed8aff3c6fb7790269460e356ddf4 (diff) | |
download | dnspython-3ec856223df5e6287903de37fb67f496e6dd8bc6.tar.gz |
more coverage improvements
Diffstat (limited to 'tests/test_update.py')
-rw-r--r-- | tests/test_update.py | 7 |
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() |