'L{static.DirectoryLister} is able to list all the files inside a
directory.'

def test_renderFiles(self):

    path = FilePath(self.mktemp())
    path.makedirs()
    path.child('file1').setContent('content1')
    path.child('file2').setContent(('content2' * 1000))
    lister = static.DirectoryLister(path.path)
    data = lister.render(self._request('foo'))
    body = '<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)
