]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1455] okay, one more test
authorJelte Jansen <jelte@isc.org>
Wed, 23 May 2012 09:58:39 +0000 (11:58 +0200)
committerJelte Jansen <jelte@isc.org>
Wed, 23 May 2012 09:58:39 +0000 (11:58 +0200)
src/lib/python/isc/ddns/tests/session_tests.py

index 74fb2f6da6b026e502ca4da67a9234b56c0b7d11..1391040dd897433a88e34b22613d7dc80681a02e 100644 (file)
@@ -340,6 +340,16 @@ class SessionTest(unittest.TestCase):
         self.__check_prerequisite_exists_value(False, self.__datasrc_client,
                                                rrset)
 
+        # and test one where the name does not even exist
+        rrset = isc.dns.RRset(isc.dns.Name("doesnotexist.example.org"),
+                              isc.dns.RRClass.IN(), isc.dns.RRType.A(),
+                              isc.dns.RRTTL(0))
+        rrset.add_rdata(isc.dns.Rdata(isc.dns.RRType.A(),
+                                      isc.dns.RRClass.IN(),
+                                      "192.0.2.1"))
+        self.__check_prerequisite_exists_value(False, self.__datasrc_client,
+                                               rrset)
+
     def test_check_prerequisite_does_not_exist(self):
         # This is essentially the same as test_check_prerequisite_exists(),
         # but with the opposite resulting values