MCPcopy Index your code
hub / github.com/python/cpython / test_basic

Function test_basic

Lib/test/audit-tests.py:84–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82
83
84def test_basic():
85 with TestHook() as hook:
86 sys.audit("test_event", 1, 2, 3)
87 assertEqual(hook.seen[0][0], "test_event")
88 assertEqual(hook.seen[0][1], (1, 2, 3))
89
90
91def test_block_add_hook():

Callers

nothing calls this directly

Calls 2

assertEqualFunction · 0.85
TestHookClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…