Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
15e23bca
Commit
15e23bca
authored
Nov 21, 2011
by
JINMEI Tatuya
Browse files
[1371] update comments (now as docstring) for rrsets_equal() to make them
more sense.
parent
ddb6d109
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/python/isc/testutils/rrset_utils.py
View file @
15e23bca
...
...
@@ -18,12 +18,14 @@
from
isc.dns
import
*
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,
# and rdata)
# also, because of the fake data in rrsigs, if the type is rrsig, the
# rdata is not checked
We provide this function as part of test utils we have no direct rrset
comparison atm. There's no accessor for sigs either (so this only checks
name, class, type, ttl, and rdata).
Also, since we often use fake data in RRSIGs, RRSIG RDATA are not checked.
'''
return
a
.
get_name
()
==
b
.
get_name
()
and
\
a
.
get_class
()
==
b
.
get_class
()
and
\
a
.
get_type
()
==
b
.
get_type
()
and
\
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment