def METHOD_NAME(self, patch):
    METHOD_NAME = patch("via.views.view_pdf.Configuration")
    METHOD_NAME.extract_from_params.return_value = (
        sentinel.via_config,
        sentinel.h_config,
    )
    return METHOD_NAME