def METHOD_NAME(helpers):
    helpers.run_check_output(
        "pyinfra -v @local server.shell uptime precondition='exit 1'",
        expected_lines=["@local] Error: precondition failed: exit 1"],
        expected_exit_code=1,
    )