def test_processing_singleton_priority():
rds = dns.rdataset.from_text('in', 'mx', 300, '10 a')
po = rds.processing_order()
- print(po)
assert po == [rds[0]]
def test_processing_singleton_weighted():
rds = dns.rdataset.from_text('in', 'srv', 300, '1 10 1234 a')
po = rds.processing_order()
- print(po)
assert po == [rds[0]]
'2143 foo Ym9ndXM=')
# Using startswith as I don't care about the repr of the rdata,
# just the covers
- print(repr(rds))
self.assertTrue(repr(rds).startswith(
'<DNS IN RRSIG(NSEC) rdataset:'))
with zone.writer() as txn:
txn.rollback()
for rdataset in txn:
- print(rdataset)
+ pass
def test_zone_changed(zone):
# Read-only is not changed!
def test_zone_get_deleted(zone):
with zone.writer() as txn:
- print(zone.to_text())
ns1 = dns.name.from_text('ns1', None)
assert txn.get(ns1, dns.rdatatype.A) is not None
txn.delete(ns1)
pass
def test_zone_rollback(zone):
+ a99 = dns.name.from_text('a99.example.')
try:
with zone.writer() as txn:
- a99 = dns.name.from_text('a99.example.')
rds = dns.rdataset.from_text('in', 'a', 300, '10.0.0.99')
txn.add(a99, rds)
assert txn.name_exists(a99)
assert s is None
assert s == xs
(q, s) = dns.xfr.make_query(z, serial=10)
- print(q)
xs = dns.xfr.extract_serial_from_query(q)
assert s == 10
assert s == xs
"""Make sure module exports all mnemonics from enums"""
for attr in enumerate_module(module, enum.Enum):
if only is not None and attr not in only:
- print('SKIP', attr)
+ #print('SKIP', attr)
continue
for flag, value in attr.__members__.items():
- print(module, flag, value)
+ #print(module, flag, value)
eq_callback(getattr(module, flag), value)