def METHOD_NAME(
    mocker,
    partial_call,
    expected_template_preview_args,
):
    mock_template_preview = mocker.patch("app.template_previews.TemplatePreview.from_database_object")
    mock_template_preview.return_value = (b'{"count": 99}', 200, {})
    assert partial_call({"template_type": "letter"}) == 99
    mock_template_preview.assert_called_once_with(*expected_template_preview_args)