diff options
author | Bob Halley <halley@dnspython.org> | 2020-07-26 13:59:08 -0700 |
---|---|---|
committer | Bob Halley <halley@dnspython.org> | 2020-07-26 13:59:08 -0700 |
commit | e4115b8619ba550dc95f5f5c18232f563ab185d3 (patch) | |
tree | b219d5f8e100aac63b815e6820d5ffb99f4ab19d | |
parent | 60f94c35fa15682a55236b8b02fcbb18a6e16e9f (diff) | |
download | dnspython-e4115b8619ba550dc95f5f5c18232f563ab185d3.tar.gz |
increase rcode coverage
-rw-r--r-- | tests/test_flags.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_flags.py b/tests/test_flags.py index 479e384..3f5fc69 100644 --- a/tests/test_flags.py +++ b/tests/test_flags.py @@ -72,6 +72,10 @@ class FlagsTestCase(unittest.TestCase): # In TSIG text mode, it should be BADSIG self.assertEqual(dns.rcode.to_text(rcode, True), 'BADSIG') + def test_unknown_rcode(self): + with self.assertRaises(dns.rcode.UnknownRcode): + dns.rcode.Rcode.make('BOGUS') + if __name__ == '__main__': unittest.main() |