Browse Source

[1455] one additional test case

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

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

@@ -217,6 +217,12 @@ class SessionTest(unittest.TestCase):
                               isc.dns.RRTTL(0))
         self.__check_prerequisite_exists(False, self.__datasrc_client, rrset)
 
+        # Also check the case 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))
+        self.__check_prerequisite_exists(False, self.__datasrc_client, rrset)
+
         # Wildcard expansion should not be applied, but literal matches
         # should work
         rrset = isc.dns.RRset(isc.dns.Name("foo.wildcard.example.org"),