def test_notfound_view(pyramid_request): result = notfound(pyramid_request) assert pyramid_request.response.status_int == 404 assert result == {}