MCPcopy Create free account
hub / github.com/rthalley/dnspython / test_zone_rollback

Function test_zone_rollback

tests/test_transaction.py:520–530  ·  view source on GitHub ↗
(zone)

Source from the content-addressed store, hash-verified

518
519
520def test_zone_rollback(zone):
521 a99 = dns.name.from_text("a99.example.")
522 try:
523 with zone.writer() as txn:
524 rds = dns.rdataset.from_text("in", "a", 300, "10.0.0.99")
525 txn.add(a99, rds)
526 assert txn.name_exists(a99)
527 raise ExpectedException
528 except ExpectedException:
529 pass
530 assert not zone.get_node(a99)
531
532
533def test_zone_ooz_name(zone):

Callers

nothing calls this directly

Calls 5

name_existsMethod · 0.80
from_textMethod · 0.45
writerMethod · 0.45
addMethod · 0.45
get_nodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…