Browse Source

[1455] okay, one more test

Jelte Jansen 13 years ago
parent
commit
be101587eb
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/lib/python/isc/ddns/tests/session_tests.py

+ 10 - 0
src/lib/python/isc/ddns/tests/session_tests.py

@@ -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