def METHOD_NAME(api_client, keyword, keyword2):
    keyword.replaced_by = keyword2
    keyword.deprecated = True
    keyword.save()
    url = reverse("keyword-detail", version="v1", kwargs={"pk": keyword.pk})
    response = api_client.get(url, data=None, format="json")
    assert response.status_code == 301
    response2 = api_client.get(response.url, data=None, format="json")
    assert response2.data["id"] == keyword2.id