'L{static.DirectoryLister} produces a MIME-type that indicates that it is
HTML, and includes its charset (UTF-8).'

def test_contentType(self):

    path = FilePath(self.mktemp())
    path.makedirs()
    lister = static.DirectoryLister(path.path)
    req = self._request('')
    lister.render(req)
    self.assertEqual(req.responseHeaders.getRawHeaders('content-type')[0], 'text/html;    charset=utf-8')
