def test_contentType(self):
    '\n        L{static.DirectoryLister} produces a MIME-type that indicates that it is\n        HTML, and includes its charset (UTF-8).\n        '
    path = FilePath(self.mktemp())
    path.makedirs()
    lister = static.DirectoryLister(path.path)
    req = self._request(b'')
    lister.render(req)
    self.assertEqual(req.responseHeaders.getRawHeaders(b'content-type')[0], b'text/html; charset=utf-8')
L{static.DirectoryLister} produces a MIME-type that indicates that it is
HTML, and includes its charset (UTF-8).
def test_contentType(self):
    '\n        L{static.DirectoryLister} produces a MIME-type that indicates that it is\n        HTML, and includes its charset (UTF-8).\n        '
    path = FilePath(self.mktemp())
    path.makedirs()
    lister = static.DirectoryLister(path.path)
    req = self._request(b)
    lister.render(req)
    self.assertEqual(req.responseHeaders.getRawHeaders(b'content-type')[0], b'text/html; charset=utf-8')