def METHOD_NAME(
    self,
    send_registration_mock,
    url,
    api_client,
    db,
    user_registration_opt_out,
):
    resp = api_client.put(
        url,
        json={
            "user_email": "user@example.com",
            "user_organization": "Example Org.",
            "analytics_id": user_registration_opt_out.analytics_id,
            "opt_in": True,
        },
    )
    assert resp.status_code == 200
    data = resp.json()
    assert data["analytics_id"] == user_registration_opt_out.analytics_id
    assert data["opt_in"] == True
    assert len(UserRegistration.all(db)) == 1
    assert send_registration_mock.call_count == 0