def METHOD_NAME(
    remoteci_context, user, team_user_id, topic_user_id
):
    pipeline = user.post(
        "/api/v1/pipelines",
        data={"name": "pipeline1", "team_id": team_user_id},
    )
    pipeline_id = pipeline.data["pipeline"]["id"]
    job_1 = remoteci_context.post(
        "/api/v1/jobs/schedule",
        data={"pipeline_id": pipeline_id, "topic_id": topic_user_id},
    )
    assert job_1.status_code == 201
    assert job_1.data["job"]["pipeline_id"] == pipeline_id
    job_1 = job_1.data["job"]
    job_2 = remoteci_context.post(
        "/api/v1/jobs/schedule",
        data={"pipeline_id": pipeline_id, "topic_id": topic_user_id},
    )
    assert job_2.status_code == 201
    assert job_2.data["job"]["pipeline_id"] == pipeline_id
    job_2 = job_2.data["job"]
    jobs_pipeline = remoteci_context.get("/api/v1/pipelines/%s/jobs" % pipeline_id)
    jobs_pipeline = jobs_pipeline.data["jobs"]
    assert jobs_pipeline[0]["id"] == job_1["id"]
    assert jobs_pipeline[1]["id"] == job_2["id"]