summaryrefslogtreecommitdiff
path: root/tests/test_flags.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_flags.py')
-rw-r--r--tests/test_flags.py4
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()