def METHOD_NAME(project_with_runs):
    """Test getting activities that are based on a plan."""
    plan = next(p for p in Plan.list() if p.name == "plan-1")
    assert 1 == len(plan.activities)
    activity = plan.activities[0]
    assert isinstance(activity, Activity)