def METHOD_NAME(self):
    """
    Tests simpleflow activity.rerun
    """
    # run a very short workflow
    result = self.invoke(
        'standalone --workflow-id %s --input {"args":[0]} --nb-workers 1 '
        "--nb-deciders 1 tests.integration.workflow.SleepWorkflow" % self.workflow_id,
    )
    expect(result.exit_code).to.equal(0)
    lines = result.output.split("\n")
    start_line = [line for line in lines if line.startswith("test-simpleflow-workflow")][0]
    _, run_id = start_line.split(" ", 1)
    # this workflow has executed a single activity, activity-tests.integration.workflow.sleep-1
    # for which scheduledEventId is 5
    # => let's rerun it locally and check the result
    result = self.invoke(
        "activity.rerun --workflow-id %s --run-id %s --scheduled-id 5" % (self.workflow_id, run_id),
    )
    expect(result.exit_code).to.equal(0)
    expect(result.output).to.contain("will sleep 0s")