def METHOD_NAME(self):
    events = self.run_standalone("tests.integration.workflow.ATestDefinitionWithIdempotentTask")
    activities = [
        e["activityTaskScheduledEventAttributes"]["activityId"]
        for e in events
        if (
            e["eventType"] == "ActivityTaskScheduled"
            and e["activityTaskScheduledEventAttributes"]["activityType"]["name"] == "tests.integration.workflow"
            ".get_uuid"
        )
    ]
    expect(activities).should.have.length_of(2)
    expect(activities[0]).should.be.different_of(activities[1])
    failures = [
        e["scheduleActivityTaskFailedEventAttributes"]["cause"]
        for e in events
        if e["eventType"] == "ScheduleActivityTaskFailed"
    ]
    expect(failures).should_not.contain("ACTIVITY_ID_ALREADY_IN_USE")