def test_noResourceRendering(self):
        """
        L{NoResource} sets the HTTP I{NOT FOUND} code.
        """
        detail = "long message"
        page = self.noResource(detail)
        self._pageRenderingTest(page, NOT_FOUND, "No Such Resource", detail)

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