def METHOD_NAME():
    hooks = [mock.Mock("hook%d" % _) for _ in range(2)]
    lo = min(linenos(injection_target))
    lines = list(range(lo, lo + 2))
    hook_data = list(zip(hooks, lines, hooks))
    failed = inject_hooks(injection_target, hook_data)
    assert failed == []
    invalid_hook = (hooks[-1], lines[-1] + 200, hooks[-1])
    hook_data.append(invalid_hook)
    failed = eject_hooks(injection_target, hook_data)
    assert failed == [invalid_hook]
    assert injection_target(1, 2) == (2, 1)
    for hook in hooks:
        hook.assert_not_called()