def test_multiple_mixed(multiple_mixed):
    assert _get_most_recent_hook(multiple_mixed) == multiple_mixed[1]
def test_single_inactive(single_inactive):
    assert _get_most_recent_hook(single_inactive) == single_inactive[0]
def test_multiple_inactive(multiple_inactive):
    assert _get_most_recent_hook(multiple_inactive) == multiple_inactive[2]
def test_no_hooks():
    assert _get_most_recent_hook([]) is None