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_ntoaaton.py | |
| parent | abedf378928ed8aff3c6fb7790269460e356ddf4 (diff) | |
| download | dnspython-3ec856223df5e6287903de37fb67f496e6dd8bc6.tar.gz | |
more coverage improvements
Diffstat (limited to 'tests/test_ntoaaton.py')
| -rw-r--r-- | tests/test_ntoaaton.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_ntoaaton.py b/tests/test_ntoaaton.py index 4a5818e..d8cb7bc 100644 --- a/tests/test_ntoaaton.py +++ b/tests/test_ntoaaton.py @@ -310,5 +310,11 @@ class NtoAAtoNTestCase(unittest.TestCase): t = dns.inet.low_level_address_tuple(('2600::1', 53), bogus) self.assertRaises(NotImplementedError, bad) + def test_bogus_family(self): + self.assertRaises(NotImplementedError, + lambda: dns.inet.inet_pton(12345, 'bogus')) + self.assertRaises(NotImplementedError, + lambda: dns.inet.inet_ntop(12345, b'bogus')) + if __name__ == '__main__': unittest.main() |
