def METHOD_NAME(
    mocker,
    mock_get_service_letter_template,
    partial_call,
    expected_page_argument,
):
    mock_from_db = mocker.patch("app.template_previews.TemplatePreview.from_database_object")
    template = LetterPreviewTemplate(mock_get_service_letter_template(None, None)["data"])
    ret = partial_call(template, "foo")
    assert ret == mock_from_db.return_value
    mock_from_db.assert_called_once_with(template._template, "foo", template.values, page=expected_page_argument)