def METHOD_NAME(self, pyramid_config, view):
    decorator = mock.Mock()
    api_config.add_api_view(
        pyramid_config,
        view,
        versions=["v1"],
        route_name="thing.read",
        decorator=decorator,
    )
    (_, kwargs) = pyramid_config.add_view.call_args
    assert kwargs["decorator"] == decorator