def METHOD_NAME(
    admin_client, nonexisting_theme
):
    edit_link = reverse("misago:admin:themes:edit", kwargs={"pk": nonexisting_theme.pk})
    response = admin_client.get(edit_link)
    assert_has_error_message(response)