def METHOD_NAME(
    self, pyramid_request, application_instance, value, family, class_
):
    application_instance.tool_consumer_info_product_family_code = value
    product = get_product_from_request(pyramid_request)
    class_.from_request.assert_called_once_with(
        pyramid_request, application_instance.settings
    )
    assert product == class_.from_request.return_value
    assert product.family == family