def METHOD_NAME(project_with_runs):
    """Test getting downstream of an activity."""
    activity = next(p for p in Activity.list() if p.plan.name == "plan-1")
    downstreams = activity.following_activities
    assert 1 == len(downstreams)
    assert "plan-2" == downstreams[0].plan.name
    activity = next(p for p in Activity.list() if p.plan.name == "plan-2")
    assert [] == activity.following_activities