BIND 10 trac363, updated. ad3dfb04a335ed4c65722063bd351be51dae33b4 [trac363] added some more boundary tests.

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Apr 8 01:06:35 UTC 2011


The branch, trac363 has been updated
       via  ad3dfb04a335ed4c65722063bd351be51dae33b4 (commit)
      from  ba6927dc78e991f8a5c608beee4c9807895914cd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ad3dfb04a335ed4c65722063bd351be51dae33b4
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Thu Apr 7 18:06:17 2011 -0700

    [trac363] added some more boundary tests.

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dns/python/tests/rcode_python_test.py   |    2 ++
 src/lib/dns/python/tests/rrclass_python_test.py |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dns/python/tests/rcode_python_test.py b/src/lib/dns/python/tests/rcode_python_test.py
index 27b1da8..77fed3a 100644
--- a/src/lib/dns/python/tests/rcode_python_test.py
+++ b/src/lib/dns/python/tests/rcode_python_test.py
@@ -38,8 +38,10 @@ class RcodeTest(unittest.TestCase):
         # Range check.  We need to do this at the binding level, so we need
         # explicit tests for it.
         self.assertEqual(Rcode(0).get_code(), 0)
+        self.assertEqual(Rcode(4095).get_code(), 4095)
         self.assertEqual(Rcode(0, 0).get_code(), 0)
         self.assertEqual(Rcode(0, 0).get_extended_code(), 0)
+        self.assertEqual(Rcode(15, 255).get_code(), 4095)
         self.assertRaises(ValueError, Rcode, 65536)
         self.assertRaises(ValueError, Rcode, 0x10, 0x100)
         self.assertRaises(ValueError, Rcode, 0x100, 0x10)
diff --git a/src/lib/dns/python/tests/rrclass_python_test.py b/src/lib/dns/python/tests/rrclass_python_test.py
index a195cd1..38d8c8c 100644
--- a/src/lib/dns/python/tests/rrclass_python_test.py
+++ b/src/lib/dns/python/tests/rrclass_python_test.py
@@ -40,6 +40,8 @@ class RRClassTest(unittest.TestCase):
         # explicit tests for it.
         self.assertRaises(ValueError, RRClass, 65536)
         self.assertRaises(TypeError, RRClass, -1)
+        self.assertEqual(RRClass(65535).get_code(), 65535)
+        self.assertEqual(RRClass(0).get_code(), 0)
 
     def test_rrclass_to_text(self):
         self.assertEqual("IN", self.c1.to_text())




More information about the bind10-changes mailing list