def METHOD_NAME(self, view, expected_data: dict):
    _view = view.as_view()
    # method doesn't matter since we're using `dispatch`
    request = self.factory.get("/some/irrelevant/url")
    response = _view(request)
    expected_status = expected_data["status"]
    self.assertEqual(response.status_code, expected_status)
    self.assertEqual(response["Content-Type"], "application/problem+json")
    # can't verify UUID...
    self.assertTrue(response.data["instance"].startswith("urn:uuid:"))
    del response.data["instance"]
    exc_class = view.exception.__class__.__name__
    expected_data["type"] = f"http://testserver/ref/fouten/{exc_class}/"
    self.assertEqual(response.data, expected_data)