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

Function test_exact_delete

tests/test_btree.py:663–675  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

661
662
663def test_exact_delete():
664 N = 8
665 b = BTreeDict()
666 add_keys(b, N)
667 for key in [5, 0, 7]:
668 elt = b.get_element(key)
669 assert elt is not None
670 bogus_elt = btree.KV(key, False)
671 with pytest.raises(ValueError):
672 b.delete_exact(bogus_elt)
673 b.delete_exact(elt)
674 with pytest.raises(ValueError):
675 b.delete_exact(elt)
676
677
678def test_find_nonexistent_node():

Callers

nothing calls this directly

Calls 4

add_keysFunction · 0.85
get_elementMethod · 0.80
BTreeDictClass · 0.70
delete_exactMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…