Commit 15e23bca authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[1371] update comments (now as docstring) for rrsets_equal() to make them

more sense.
parent ddb6d109
...@@ -18,12 +18,14 @@ ...@@ -18,12 +18,14 @@
from isc.dns import * from isc.dns import *
def rrsets_equal(a, b): def rrsets_equal(a, b):
'''Compare two RRsets, return True if equal, otherwise False''' '''Compare two RRsets, return True if equal, otherwise False
# no accessor for sigs either (so this only checks name, class, type, ttl, We provide this function as part of test utils we have no direct rrset
# and rdata) comparison atm. There's no accessor for sigs either (so this only checks
# also, because of the fake data in rrsigs, if the type is rrsig, the name, class, type, ttl, and rdata).
# rdata is not checked Also, since we often use fake data in RRSIGs, RRSIG RDATA are not checked.
'''
return a.get_name() == b.get_name() and \ return a.get_name() == b.get_name() and \
a.get_class() == b.get_class() and \ a.get_class() == b.get_class() and \
a.get_type() == b.get_type() and \ a.get_type() == b.get_type() and \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment