def METHOD_NAME(project_with_runs):
    """Test getting attributes of an activity."""
    activity = next(p for p in Activity.list() if p.plan.name == "plan-1")
    assert "/activities/1" == activity.id
    assert {"input"} == {p.path for p in activity.used_inputs}
    assert {"intermediate"} == {p.path for p in activity.generated_outputs}
    assert "command-1 -n 42 input > intermediate" == activity.executed_command
    assert "2022-05-20T00:42:00+00:00" == activity.started_at.isoformat()
    assert "2022-05-20T00:42:01+00:00" == activity.ended_at.isoformat()
    assert "Renku Bot <renku@datascience.ch>" == activity.user