def METHOD_NAME(
    self,
    _m_check_lock_info,
    m_write_cache,
    m_add_notice,
    m_delete_cache_key,
    _m_getpid,
    FakeConfig,
):
    cfg = FakeConfig()
    arg = mock.sentinel.arg
    def test_function(args, cfg):
        assert arg == mock.sentinel.arg
        return mock.sentinel.success
    with pytest.raises(LockHeldError) as exc:
        with SingleAttemptLock(cfg=cfg, lock_holder="some operation"):
            test_function(arg, cfg=cfg)
    assert (
        "Unable to perform: some operation.\n"
        + LOCK_HELD.format(lock_holder="held", pid=10).msg
        == exc.value.msg
    )
    assert [] == m_write_cache.call_args_list
    assert [] == m_add_notice.call_args_list
    assert [] == m_delete_cache_key.call_args_list