async def METHOD_NAME(mocker):
    execute = mock.AsyncMock()
    execute.side_effect = [(1, ["staple complete"])]
    mocker.patch.object(rcodesign, "_execute_command", execute)
    with pytest.raises(rcodesign.RCodesignError):
        await rcodesign.rcodesign_staple("/foo/bar")