def METHOD_NAME(admin, remoteci_context, topic):
    data = {"topic_id": topic["id"]}
    fixed_now = datetime.datetime(2019, 1, 12, 13, 42, 20, 111136)
    with patch("dci.api.v1.jobs.get_utc_now", return_value=fixed_now):
        r = remoteci_context.post("/api/v1/jobs/schedule", data=data)
        assert r.status_code == 201
    r = remoteci_context.post("/api/v1/jobs/schedule", data=data)
    assert r.status_code == 201
    r = remoteci_context.post("/api/v1/jobs/schedule", data=data)
    assert r.status_code == 201
    jobs = admin.get("/api/v1/jobs?sort=-created_at").data["jobs"]
    assert jobs[-1]["status"] == "killed"
    assert jobs[-2]["status"] == "new"
    assert jobs[-3]["status"] == "new"