Browse Source

[2879] more documentation

JINMEI Tatuya 12 years ago
parent
commit
29b74f8137
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/lib/python/isc/notify/tests/notify_out_test.py

+ 9 - 0
src/lib/python/isc/notify/tests/notify_out_test.py

@@ -26,6 +26,15 @@ from isc.dns import *
 TESTDATA_SRCDIR = os.getenv("TESTDATASRCDIR")
 
 def get_notify_msgdata(zone_name, qid=0):
+    """A helper function to generate a notify response in wire format.
+
+    Parameters:
+    zone_name(isc.dns.Name()) The zone name for the notify.  Used as the
+    question name.
+    qid (int): The QID of the response.  In most test cases a value of 0 is
+    expected.
+
+    """
     m = Message(Message.RENDER)
     m.set_opcode(Opcode.NOTIFY)
     m.set_rcode(Rcode.NOERROR)