def test_renderDirectories(self):
    '\n        L{static.DirectoryLister} is able to list all the directories inside\n        a directory.\n        '
    path = FilePath(self.mktemp())
    path.makedirs()
    path.child('dir1').makedirs()
    path.child('dir2 & 3').makedirs()
    lister = static.DirectoryLister(path.path)
    data = lister.render(self._request(b'foo'))
    body = b'<tr class="odd">\n    <td><a href="dir1/">dir1/</a></td>\n    <td></td>\n    <td>[Directory]</td>\n    <td></td>\n</tr>\n<tr class="even">\n    <td><a href="dir2%20%26%203/">dir2 &amp; 3/</a></td>\n    <td></td>\n    <td>[Directory]</td>\n    <td></td>\n</tr>'
    self.assertIn(body, data)
L{static.DirectoryLister} is able to list all the directories inside
a directory.
def test_renderDirectories(self):
    '\n        L{static.DirectoryLister} is able to list all the directories inside\n        a directory.\n        '
    path = FilePath(self.mktemp())
    path.makedirs()
    path.child('dir1').makedirs()
    path.child('dir2 & 3').makedirs()
    lister = static.DirectoryLister(path.path)
    data = lister.render(self._request(b'foo'))
    body = b'<tr class="odd">\n    <td><a href="dir1/">dir1/</a></td>\n    <td></td>\n    <td>[Directory]</td>\n    <td></td>\n</tr>\n<tr class="even">\n    <td><a href="dir2%20%26%203/">dir2 &amp; 3/</a></td>\n    <td></td>\n    <td>[Directory]</td>\n    <td></td>\n</tr>'
    self.assertIn(body, data)