def test_escapeHeader(self):
    '\n        L{static.DirectoryLister} escape "&", "<" and ">" after unquoting the\n        request uri.\n        '
    path = FilePath(self.mktemp())
    path.makedirs()
    lister = static.DirectoryLister(path.path)
    data = lister.render(self._request(b'foo%26bar'))
    self.assertIn(b'<h1>Directory listing for foo&amp;bar</h1>', data)
    self.assertIn(b'<title>Directory listing for foo&amp;bar</title>', data)
L{static.DirectoryLister} escape "&", "<" and ">" after unquoting the
request uri.
def test_escapeHeader(self):
    '\n        L{static.DirectoryLister} escape "&", "<" and ">" after unquoting the\n        request uri.\n        '
    path = FilePath(self.mktemp())
    path.makedirs()
    lister = static.DirectoryLister(path.path)
    data = lister.render(self._request(b'foo%26bar'))
    self.assertIn(b'<h1>Directory listing for foo&amp;bar</h1>', data)
    self.assertIn(b'<title>Directory listing for foo&amp;bar</title>', data)