def test_renderFiles(self):
    '\n        L{static.DirectoryLister} is able to list all the files inside a\n        directory.\n        '
    path = FilePath(self.mktemp())
    path.makedirs()
    path.child('file1').setContent(b'content1')
    path.child('file2').setContent((b'content2' * 1000))
    lister = static.DirectoryLister(path.path)
    data = lister.render(self._request(b'foo'))
    body = b'<tr class="odd">\n    <td><a href="file1">file1</a></td>\n    <td>8B</td>\n    <td>[text/html]</td>\n    <td></td>\n</tr>\n<tr class="even">\n    <td><a href="file2">file2</a></td>\n    <td>7K</td>\n    <td>[text/html]</td>\n    <td></td>\n</tr>'
    self.assertIn(body, data)
L{static.DirectoryLister} is able to list all the files inside a
directory.
def test_renderFiles(self):
    '\n        L{static.DirectoryLister} is able to list all the files inside a\n        directory.\n        '
    path = FilePath(self.mktemp())
    path.makedirs()
    path.child('file1').setContent(b'content1')
    path.child('file2').setContent((b'content2' * 1000))
    lister = static.DirectoryLister(path.path)
    data = lister.render(self._request(b'foo'))
    body = b'<tr class="odd">\n    <td><a href="file1">file1</a></td>\n    <td>8B</td>\n    <td>[text/html]</td>\n    <td></td>\n</tr>\n<tr class="even">\n    <td><a href="file2">file2</a></td>\n    <td>7K</td>\n    <td>[text/html]</td>\n    <td></td>\n</tr>'
    self.assertIn(body, data)