def test_renderHeader(self):
        """
        L{static.DirectoryLister} prints the request uri as header of the
        rendered content.
        """
        path = FilePath(self.mktemp())
        path.makedirs()

        lister = static.DirectoryLister(path.path)
        data = lister.render(self._request(b'foo'))
        self.assertIn(b"<h1>Directory listing for foo</h1>", data)
        self.assertIn(b"<title>Directory listing for foo</title>", data)

        L{static.DirectoryLister} prints the request uri as header of the
        rendered content.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_static.py