def test_forbiddenResourceRendering(self):
        """
        L{ForbiddenResource} sets the HTTP I{FORBIDDEN} code.
        """
        detail = "longer message"
        page = self.forbiddenResource(detail)
        self._pageRenderingTest(page, FORBIDDEN, "Forbidden Resource", detail)

        L{ForbiddenResource} sets the HTTP I{FORBIDDEN} code.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_resource.py